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

fix: remove unused window check, as onMount only runs client side #3279

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

schuwa
Copy link
Contributor

@schuwa schuwa commented Nov 12, 2023

I just checked the svelte docs again and onMount / onDestroy only run client side.
I found this out while playing with svelte 5 preview (svelte@next) as it throws an error failing to ssr the page.
Removing the check does not change the behavior, so I think it can just be removed

@stepan662
Copy link
Collaborator

Hi, I guess you are right. Thanks for the fix 🙂

@stepan662 stepan662 merged commit 568e5e4 into tolgee:main Nov 13, 2023
26 of 29 checks passed
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.

2 participants