Can I react/listen on store changes?
I a variable I have been explicitly listening on changes to:
Now I also have a store. But I can't do
on([mySignal, myStore], ...)
Is there another way?2 Replies
store.property
to listen to a single property
{ ...store }
to listen to a single object
trackStore(store)
from solid-primitives to listen to any nested change
but generally you track what you use
so when you stop using on
and instead just use the store in the callback, what gets used will automatically be trackedthanks a lot :D