-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core): allow adding edges with missing source or target nodes #1149
Conversation
🦋 Changeset detectedLatest commit: 83ff958 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
6b8db8b
to
83ff958
Compare
is there a way to opt-out of this behavior? I don't know why this would be useful, and in my application, it prevents the app from automatically recovering from an error. Of course, I'm working on fixing the bug that I introduced that causes edges with a missing source/target to be added in the first place - but the bug would have caused a much smaller problem with the pre-1.24.0 behavior of refusing to add the edge. I would much rather globally turn on the behavior from before this fix in my app. |
The behavior has been changed to match the behavior of ReactFlow as I don't want it to drift apart too much. |
Makes sense, I suppose. In my application nodes are only allowed to have one outgoing edge from each handle, and we disable that handle if there is an outgoing edge, so the behavior the user gets now if there's a bug that causes an invalid edge to be added is that the handle just seems broken and a new/replacement connection can't be made. But I see your point - I guess I can re-add this error handling myself if I want. |
No description provided.