Skip to content

How do I know which keys have been updated? #1010

Answered by dai-shi
lmk123 asked this question in Q&A
Discussion options

You must be logged in to vote

Valtio core doesn't track props, so you have to do it on your end.
subscribeKey is provided from valtio/utils, but it works only for a single key.

subscribeKeys is also proposed #887, but nobody has worked on since then.


We have unstable_ops, but it's considered for library authors or advanced users.

callback: (unstable_ops: Op[]) => void,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lmk123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants