|
I am working on a Replication system. Here is the workflow.
If there is a api |
Answered by
dai-shi
Aug 15, 2025
Replies: 2 comments 5 replies
|
Valtio doesn't provide a direct solution to it (not possible by design), but wouldn't you be able to create a custom hook to track the usage? useMySnapshot(state, "UID") |
1 reply
Answer selected by
pilaoda
|
As Dai-shi said, valtio doesn't support this because it uses references rather than tracking by path. Are you just wanting to see if an object has the same shape as one that came before it? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Valtio doesn't provide a direct solution to it (not possible by design), but wouldn't you be able to create a custom hook to track the usage?