2 ms·
AFAIK Svelte doesn't have memoization because, unlike React, it does't really need it. Svelte tracks reactive dependencies at compile time so that only the nece
by pier25 6y ago
AFAIK Svelte doesn't have memoization because, unlike React, it does't really need it. Svelte tracks reactive dependencies at compile time so that only the necessary parts of the DOM are updated when some state changes.
Svelte has a derived reactive store similar to a computed value in Mobx:
https://svelte.dev/docs#derived https://svelte.dev/docs#derived