diff --git a/.changeset/chilly-donkeys-relax.md b/.changeset/chilly-donkeys-relax.md
new file mode 100644
index 00000000..709eb42a
--- /dev/null
+++ b/.changeset/chilly-donkeys-relax.md
@@ -0,0 +1,5 @@
+---
+'@xyflow/react': patch
+---
+
+Omit `defaultValue` from `Node`'s `domAttributes` to fix type incompatibility when using `WritableDraft`
diff --git a/.changeset/chilly-pumpkins-decide.md b/.changeset/chilly-pumpkins-decide.md
new file mode 100644
index 00000000..e103269b
--- /dev/null
+++ b/.changeset/chilly-pumpkins-decide.md
@@ -0,0 +1,5 @@
+---
+'@xyflow/react': patch
+---
+
+Prevent a 0 added to the markup for edges when interactionWidth is 0
diff --git a/.changeset/tidy-donuts-hug.md b/.changeset/tidy-donuts-hug.md
new file mode 100644
index 00000000..3f83a0a7
--- /dev/null
+++ b/.changeset/tidy-donuts-hug.md
@@ -0,0 +1,5 @@
+---
+'@xyflow/svelte': patch
+---
+
+Export `BuiltInEdge` type
diff --git a/examples/react/src/App/header.tsx b/examples/react/src/App/header.tsx
index 37e57910..225a7e1c 100644
--- a/examples/react/src/App/header.tsx
+++ b/examples/react/src/App/header.tsx
@@ -6,13 +6,17 @@ import routes from './routes';
export default function Header() {
const location = useLocation();
const navigate = useNavigate();
- const [currentPath, setCurrentPath] = useState(location.pathname);
+
+ const pathParts = location.pathname.split('/').filter(Boolean);
+ const initialExample = pathParts.length > 1 ? pathParts[1] : 'basic';
+
+ const [currentPath, setCurrentPath] = useState(initialExample);
useEffect(() => {
const name = routes.find((route) => route.path === currentPath)?.name;
document.title = `React Flow Examples${name ? ' - ' + name : ''}`;
navigate(currentPath);
- }, [currentPath]);
+ }, [currentPath, navigate]);
return (
<>
@@ -20,7 +24,11 @@ export default function Header() {
React Flow Dev
-