Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy the worker when the component has been unmounted #148

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

TaTo30
Copy link
Owner

@TaTo30 TaTo30 commented Sep 8, 2024

Closes #130

This change could break some implementations.

If the component rendering is conditionated by v-if and the condition is set to false the worker will be destroyed and the pages won't be rendered if the condition returns to true. To avoid this behavior replace v-if by v-show or ensure to change the src parameter on usePDF to reload the worker.

@TaTo30 TaTo30 merged commit 900c710 into master Sep 8, 2024
@TaTo30 TaTo30 deleted the fix/issue130 branch September 8, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ram full and slow when change pdf file
1 participant