-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor(svelte): migrate to svelte 5 #391
base: main
Are you sure you want to change the base?
refactor(svelte): migrate to svelte 5 #391
Conversation
|
@@ -98,14 +98,13 @@ | |||
}); | |||
|
|||
$effect(() => { | |||
console.log(speed); | |||
if (dotLottie && dotLottie.isLoaded && typeof speed == 'number') { | |||
if (dotLottie && typeof speed == 'number' && dotLottie.isLoaded) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed order of conditions, cause isLoaded
is not reactive which blocking svelte from getting to next reactive object which is speed
.
thanks to sveltejs/svelte#14517 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @theashraf, can i get a review on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@moonlitgrace Sorry for the late reply. Is the PR ready for review?
Before that, I'm not sure if Svelte 5 is backward compatible with Svelte 4. Is that the case? If it is, we’ll also need to update the peer dependencies of the dotlottie-svelte package to include both v4 and v5 of Svelte.
Description
🚧 WIP: Migrating to Svelte 5, it is stable now.
Type of change
Checklist