Replies: 1 comment 1 reply
-
|
It uses useSyncExternalStore provided in React 18, and See also: https://blog.axlight.com/posts/how-valtio-proxy-state-works-react-part/ |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello @dai-shi I have been using valtio for a while, and just like lot of people do i did not look into how valtio actually does what it does, i was thinking valtio might be using setState internally to trigger re-renders. but when i had a look into the react implementation i could not find it. I'm curious about how does it triggers re-renders in react, without useState or useReducer.
Please correct me if I'm wrong above, i want to learn things. Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions