Closed Juyeong-Byeon closed 1 year ago
just like described below link there is no synchronous partial state update Interface in valtio https://github.com/pmndrs/valtio/discussions/699
So there is some limits. for achieve the goal to use batched updates for some parts of the state while still having the ability to perform synchronous updates for other parts.
https://codesandbox.io/s/valtio-sandbox-forked-ij76sz?file=/src/App.js
Please include a minimal reproduction.
Let's re-open when we have some ideas in #699.
Summary
just like described below link there is no synchronous partial state update Interface in valtio https://github.com/pmndrs/valtio/discussions/699
So there is some limits. for achieve the goal to use batched updates for some parts of the state while still having the ability to perform synchronous updates for other parts.
Link to reproduction
https://codesandbox.io/s/valtio-sandbox-forked-ij76sz?file=/src/App.js
Check List
Please include a minimal reproduction.