Replies: 1 comment
-
|
Thanks! This is fixed in v10.0.0-next.49. Please open an issue for these kind of things :) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
useNodesStateanduseEdgesStateshould have generics for data.Current code in
useNodesEdgesStateisexport const useNodesState = createUseItemsState<Node, NodeChange>(applyNodeChanges as ApplyChanges<Node, NodeChange>);It should be something like this:
export const useNodesState<T> = createUseItemsState<Node<T>, NodeChange>(applyNodeChanges as ApplyChanges<Node, NodeChange>);( I am not good at TypeScript, only a hope as user)
Beta Was this translation helpful? Give feedback.
All reactions