Skip to content
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

Add function binding example to Svelte Flow 1.0 migration guide #742

Open
wants to merge 5 commits into
base: svelte5
Choose a base branch
from

Conversation

osjjames
Copy link

@osjjames osjjames commented Apr 3, 2025

The default bind syntax is not applicable when nodes and edges are declared outside of the component scope.

This PR adds an example of how to use function bindings in this case.

It took me a little while to figure out so thought it would be worth adding an example!

osjjames added 3 commits April 3, 2025 10:45
The default `bind` syntax is not applicable when `nodes` and `edges` live outside of the component scope. Adds an example of how to use function bindings in this case.
Copy link

vercel bot commented Apr 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
example-apps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2025 1:59pm
svelteflow-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2025 1:59pm
ui-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2025 1:59pm
xyflow-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2025 1:59pm

Copy link

vercel bot commented Apr 3, 2025

@osjjames is attempting to deploy a commit to the xyflow Team on Vercel.

A member of the Team first needs to authorize it.

@osjjames osjjames changed the title Add function binding example to migration guide Add function binding example to Svelte Flow 1.0 migration guide Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant