store: Precise event listener #329
wmertens
started this conversation in
Proposals For Qwik
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is it about?
Be able to know about deletes etc
What's the motivation for this proposal?
Problems you are trying to solve:
Goals you are trying to achieve:
Proposed Solution / Feature
What do you propose?
some sort of api, perhaps
const change = track(store, storeChangesSymbol)inside a task, and then the task gets called for each change with changes like "{type: StoreChanges.spliced, start, count, insertCount}`Then, a component like
Eachwould render a story array and could use this API to mark specific vnodes dirty or directly adjust the vnode childrenperhaps this is only really useful in
Each, and the link should be hardcoded so that Each components iterating over stores are recorded, so that the callback is in qwik core.Links / References
No response
Beta Was this translation helpful? Give feedback.
All reactions