Error when updating child node position & zustand store #4288
Unanswered
tinybitsofcode
asked this question in
Q&A
Replies: 1 comment
-
It seems removing all uses of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using a sub-flow and a store, and whenever I move a child node and it's position gets updated internally I get the following error:
The error is coming from this assignment:
xyflow/packages/react/src/store/index.ts
Line 150 in 467223b
As far as I could see, on this line there is an object reference being passed around instead of a new position object being created to be mutated:
xyflow/packages/react/src/store/index.ts
Line 135 in 467223b
This also doesn't trigger when I'm dragging the node, only when dropping.
I'm wondering if this might be something to do with my setup, I couldn't replicate it without using the zustand store.
Beta Was this translation helpful? Give feedback.
All reactions