Skip to Content

18 November 2026

Svelte Flow 2

Abbey Yacoe
Software Engineer
Peter Gorzo
Software Engineer

Just looking for the technical details and what you need to update? Head over to our migration guide  or jump ahead to find out what’s new.

Svelte Flow 2 is here! 🎉 A year and a half after version 1, we’re back with some big changes to give you more control over your flows. But first, a bit about the people making all those nodes worth connecting.

We ❤️ the Svelte community

When we wrote Why Svelte Flow? , we realized what we loved most about building with Svelte was the community. That’s still true. What started as an experiment has become a library we’re proud to keep developing, because of your projects, questions, and bug reports.

The Svelte community is thriving online and IRL, and we love meeting you in person, whether at the Svelte Berlin meetup we sponsor or the upcoming Svelte Summit in Ljubljana. If you’ll be in Ljubljana next week, come say hello and show us what you’re building.

Seeing what you build with Svelte Flow gets us excited to keep working on it. Here are a few projects we’ve loved seeing out in the wild:

Patchies  is a creative coding playground where you can connect small programs to make sounds, visuals, and interactive experiments. The project  is a lovely invitation to plug things together and see what happens. Clear your afternoon accordingly.

TangleGuard  helps developers analyze code dependencies and enforce rules across different programming languages.

NetSandbox  brings network design into the browser, letting you build topologies and get feedback on how they work.

Screenshot of PatchiesScreenshot of TangleGuardScreenshot of NetSandbox

What’s new in version 2

Besides our continued focus on performance, it’s also time for new features and a few breaking changes.

You’re in charge

The biggest update: you can now step in before Svelte Flow applies changes to your nodes and edges. The new onnodeschange and onedgeschange handlers let you inspect, modify or drop changes, or clear the changeset and apply the updates yourself.

Along with this, Svelte Flow is now more opinionated about how you update your nodes and edges. Whether you’re upgrading or just getting started, give our new Handling Updates  guide a read.

On the topic of “hooks”…

Hooks no longer need a $derived wrapper to stay reactive. Instead, you pass hooks a function that returns their parameters. Svelte keeps values passed as functions reactive across function boundaries, so the hook gets updated whenever they change.

- let nodeData = $derived(useNodesData(nodeIds)); + let nodeData = useNodesData(() => ({ nodeIds }));

And yes, we still call them “hooks” and prefix them with use, even though they aren’t really hooks and Svelte’s convention is to prefix with get (component code only runs once, after all). We think there should be a noticeable difference between plain getters and functions that do all three of these:

  • depend on the context they’re called in
  • accept reactive arguments
  • return reactive state

Our inbox is open for friendly fist-fights on this one ✊

Groups and subflows

If you’re working with subflows, we have great news for you: the order of parent and child nodes doesn’t matter anymore! And the new changeParent helper moves a node to a different parent and handles the position calculations for you.

Let there be light

Svelte Flow now follows your site’s light or dark mode  automatically. You can still force a particular mode when you need to, but keeping the two in sync is no longer another task on your list.

Our styles now live in a CSS layer , making them easier to override. And if you like the look of our website examples, the theme is now available separately as xy-theme.css for you to use in your own projects.

Svelte Flow example styled with xy-theme.css
xy-theme.css in action

Over to you

The Svelte Flow 2 migration guide  covers the breaking changes and the details of updating. We’ll leave the longer code snippets over there.

If you’re building something with Svelte Flow and want to take it further, check out Svelte Flow Pro. We’ve got advanced, ready-to-use Pro examples to help you build more complex flows, and subscribing helps support the continued development of Svelte Flow.

Thank you to everyone who has built with Svelte Flow, asked questions, reported something broken, or helped someone else get started. We’re happy to be making this with you.

Give version 2 a spin, let us know what you think, and see you around ✌🏻

Get Pro examples, prioritized bug reports, 1:1 support from the maintainers, and more with React Flow Pro