Replies: 1 comment
-
You don't necessarily need to assign an id, it's a matter of where you call |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of, thanks for the great port of the React flow-library!
I'm not sure if a feature request is the appropriate issue type. Beg my pardon if this is not the case.
When implementing multiple flows for my application, I had to explicitly assign separate IDs for the flow-instances and when accessing the internal state through
useFlow
.While this makes absolute sense, it took me a bit to figure out the correct setting, as some bugs* occur when not providing separate IDs manually, which led me down the wrong debugging path initially.
Maybe this is worth its own additional example in the documentation of the MultiFlow-example? I'd be willing to provide the additional documentation if you think this would be helpful.
* e.g. "overriding" the mouse-controls and state of the other instance, etc.
Beta Was this translation helpful? Give feedback.
All reactions