Replies: 2 comments 4 replies
-
Am I interpreting this correctly that |
Beta Was this translation helpful? Give feedback.
-
Currently, our strategy is to allow people to customize the internal behavior with |
Beta Was this translation helpful? Give feedback.
-
One thing that often bites us in prod is the perf profile of valtio where we end up using things in hot code paths.
The solution is often to ref deeply-nested objects and update them immutably. In one part of our codebase we have a thing to check some proxies to make sure certain things don't get stored without reffing:
The problem is that with the way valtio state it typically updated, we have to remember to ref things as they go into the proxy.
It would be really nice if there was some way to build this behaviour into the proxy, something like:
or even:
These are ideas straight off the top of my head so underdeveloped but I think this could be useful.
Beta Was this translation helpful? Give feedback.
All reactions