-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
component: svelte/store;
issue: diamond dependencies for derived values
repl: https://svelte.dev/repl?version=3.1.0&gist=0f3250ae87011dc9a91e8e4ab8ddd6f9
For diamond dependencies you have issue with unnecessary updates which affects to useless component rerendering or unnecessary computations.
You can solve this issue with approach similar to mobx https://github.com/mobxjs/mobx/blob/a5cb65926621266716f8d11d716bf337e60dc3c1/src/core/observable.ts#L136
Or I think it's doable with topological ordering of stores. The issue with that stores might be created at runtime and even from js files.
trbrc
Metadata
Metadata
Assignees
Labels
No labels