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: apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md
+37-15Lines changed: 37 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ function afterUpdate(fn: () => void): void;
42
42
43
43
</div>
44
44
45
+
46
+
45
47
## beforeUpdate
46
48
47
49
Schedules a callback to run immediately before the component is updated after any state change.
@@ -58,6 +60,8 @@ function beforeUpdate(fn: () => void): void;
58
60
59
61
</div>
60
62
63
+
64
+
61
65
## createEventDispatcher
62
66
63
67
Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
@@ -88,6 +92,8 @@ function createEventDispatcher<
88
92
89
93
</div>
90
94
95
+
96
+
91
97
## createRawSnippet
92
98
93
99
Create a snippet programmatically
@@ -105,6 +111,8 @@ function createRawSnippet<Params extends unknown[]>(
105
111
106
112
</div>
107
113
114
+
115
+
108
116
## flushSync
109
117
110
118
Synchronously flushes any pending state changes and those that result from it.
0 commit comments