Skip to content

Commit 6bbbed6

Browse files
committed
sync
1 parent 0480795 commit 6bbbed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/svelte.dev/content/docs/svelte/07-misc/07-v5-migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ For `$set`, use `$state` instead to create a reactive property object and manipu
525525
import App from './App.svelte'
526526

527527
---const app = new App({ target: document.getElementById("app"), props: { foo: 'bar' } });
528-
app.$set('event', { foo: 'baz' });---
528+
app.$set({ foo: 'baz' });---
529529
+++const props = $state({ foo: 'bar' });
530530
const app = mount(App, { target: document.getElementById("app"), props });
531531
props.foo = 'baz';+++
@@ -850,7 +850,7 @@ In Svelte 4, `null` and `undefined` were printed as the corresponding string. In
850850

851851
Previously, bindings did not take into account `reset` event of forms, and therefore values could get out of sync with the DOM. Svelte 5 fixes this by placing a `reset` listener on the document and invoking bindings where necessary.
852852

853-
### `walk` not longer exported
853+
### `walk` no longer exported
854854

855855
`svelte/compiler` reexported `walk` from `estree-walker` for convenience. This is no longer true in Svelte 5, import it directly from that package instead in case you need it.
856856

0 commit comments

Comments
 (0)