-
|
I am working on a Replication system. Here is the workflow.
If there is a api |
Beta Was this translation helpful? Give feedback.
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") |
Beta Was this translation helpful? Give feedback.
-
|
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? |
Beta Was this translation helpful? Give feedback.
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?