-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore: encapsulate expression memoization #16269
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
Conversation
|
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js
Show resolved
Hide resolved
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js
Show resolved
Hide resolved
packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js
Outdated
Show resolved
Hide resolved
|
|
LGTM! |
another #15844 extract. this makes the logic around extracting expressions from templates for memoization (i.e. to populate the second argument to
$.template_effect) more explicit and centralized, such that adding async memoized values is a shorter hop