Closed steve-py96 closed 1 year ago
useProxy only takes the store yet as argument, in case of input-elements a sync pass-through would also be required (ref https://github.com/pmndrs/valtio/#update-synchronously)
useProxy
https://stackblitz.com/edit/vitejs-vite-6d3nla?file=src%2FApp.jsx&terminal=dev
Please do not ask questions in issues.
Please include a minimal reproduction.
Great point. Would you like to open a PR? Use Parameters<typeof useSnapshot>[1] to get options type.
Parameters<typeof useSnapshot>[1]
Will gladly do 👍🏿
Summary
useProxy
only takes the store yet as argument, in case of input-elements a sync pass-through would also be required (ref https://github.com/pmndrs/valtio/#update-synchronously)Link to reproduction
https://stackblitz.com/edit/vitejs-vite-6d3nla?file=src%2FApp.jsx&terminal=dev
Check List
Please do not ask questions in issues.
Please include a minimal reproduction.