You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
I am using valtio as my state manager.
valtio allow mutate data through es6 proxy.
Current behavior
The onClick handler's node param is not the origin value.
So I can't mutate the value, and make the valtio work.
Expected behavior
Make the handler's node param same as input.
Make properties not use Spread syntax
What is the motivation / use case for changing the behavior?
If the node object is not the same as input.
I can't set the node value from eventhandler.
The alternative is find node from nodesProxy, then change it.
But if I can change the node in event handler that would be more convenient.
The text was updated successfully, but these errors were encountered:
cqh963852
changed the title
Using valtio with reaflow
Using reaflow with valtio
Jan 6, 2023
I'm submitting a...
I am using valtio as my state manager.
valtio allow mutate data through es6 proxy.
Current behavior
The onClick handler's
node
param is not the origin value.So I can't mutate the value, and make the valtio work.
Expected behavior
Make the handler's node param same as input.
Make properties not use Spread syntax
What is the motivation / use case for changing the behavior?
If the node object is not the same as input.
I can't set the node value from eventhandler.
The alternative is find node from
nodesProxy
, then change it.But if I can change the node in event handler that would be more convenient.
The text was updated successfully, but these errors were encountered: