valtio for local (component) state #102
Replies: 1 comment
-
Thanks for opening up a discussion.
It is the out of scope to use it as a primary mean. Is it supported? Yes, I don't mean to break this usage unless there are very unexpected reasons.
It was added more or less for experiment. And you can do the same thing at your end.
This is the most important part, and if you understand it, there's nothing wrong with using valtio for local state. Actually, if you have some examples that works well with valtio local state, compared to useState, I'm interested in having a look at them. |
Beta Was this translation helpful? Give feedback.
-
@dai-shi Hi, i have a question about using valtio for local component state. i saw that
useLocalProxy
was deprecated recently (like an hour ago 🙃).Can you maybe explain why was it deprecated and why was it deemed not ideal in the first place, as mentioned here?
Also are there any plans in the future to officially support using valtio for local state or is that out of scope?
BTW I really like using valtio, even without the support for local state, so in any case - thanks for you work! 👍
Beta Was this translation helpful? Give feedback.
All reactions