You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sites/svelte-5-preview/src/routes/docs/content/01-api/05-functions.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ This is handy when you want to pass some state to an external library or API tha
49
49
Instantiates a component and mounts it to the given target:
50
50
51
51
```js
52
-
// @errors: 2724
52
+
// @errors: 2724 2305
53
53
import { mount } from'svelte';
54
54
importAppfrom'./App.svelte';
55
55
@@ -64,7 +64,7 @@ const app = mount(App, {
64
64
Like `mount`, but will pick up any HTML rendered by Svelte's SSR output (from the `render` function) inside the target and makes it interactive:
65
65
66
66
```js
67
-
// @errors: 2724
67
+
// @errors: 2724 2305
68
68
import { hydrate } from'svelte';
69
69
importAppfrom'./App.svelte';
70
70
@@ -79,7 +79,7 @@ const app = hydrate(App, {
79
79
Only available on the server and when compiling with the `server` option. Takes a component and returns an object with `html` and `head` properties on it, which you can use to populate the HTML when server-rendering your app:
0 commit comments