Skip to content
Discussion options

You must be logged in to vote

Svelte 5 did have a lot more hoisting, but that was removed because it did not yield any significant benefits at the cost of making everything more complicated.

Would recommend measuring whether your example makes a difference in your specific case and only optimize if there is a reason to. E.g. depending on the number of instances it might be irrelevant anyway.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Serator
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants