Skip to content

Commit ff46d1a

Browse files
refactor: remove redundant PdfEditor lifecycle hooks
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 5134301 commit ff46d1a

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/components/PdfEditor/PdfEditor.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<script setup lang="ts">
6666
import { t } from '@nextcloud/l10n'
6767
68-
import { computed, nextTick, onBeforeUnmount, onMounted, ref } from 'vue'
68+
import { computed, nextTick, ref } from 'vue'
6969
import PDFElements from '@libresign/pdf-elements'
7070
import '@libresign/pdf-elements/dist/index.css'
7171
@@ -270,7 +270,6 @@ function handleAddingEnded(event: Event) {
270270
emit('pdf-editor:adding-ended', {
271271
reason: (event as CustomEvent)?.detail?.reason,
272272
})
273-
274273
}
275274
function startAddingSigner(signer: SignerSummaryRecord | SignerDetailRecord | null | undefined, size: { width?: number, height?: number }) {
276275
if (!pdfElements.value || !size?.width || !size?.height) {
@@ -351,14 +350,6 @@ async function waitForPageRender(docIndex: number, pageIndex: number) {
351350
await nextTick()
352351
}
353352
354-
onMounted(() => {
355-
// PDF worker and listeners are already handled by pdf-elements component
356-
})
357-
358-
onBeforeUnmount(() => {
359-
// Cleanup is handled by pdf-elements component
360-
})
361-
362353
defineExpose({
363354
t,
364355
mdiContentCopy,

0 commit comments

Comments
 (0)