diff --git a/.changeset/famous-rocks-poke.md b/.changeset/famous-rocks-poke.md new file mode 100644 index 000000000000..a3fc4aedc7bc --- /dev/null +++ b/.changeset/famous-rocks-poke.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: `@attach` opt's you into runes mode diff --git a/documentation/docs/03-template-syntax/09-@attach.md b/documentation/docs/03-template-syntax/09-@attach.md index 2df0882e34d4..a3832b6553c6 100644 --- a/documentation/docs/03-template-syntax/09-@attach.md +++ b/documentation/docs/03-template-syntax/09-@attach.md @@ -7,6 +7,9 @@ Attachments are functions that run when an element is mounted to the DOM. Option > [!NOTE] > Attachments are available in Svelte 5.29 and newer. +> [!NOTE] +> Attachments also opt you in for runes mode so if you use them in a legacy component you would have to also migrate that component. + ```svelte