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
* The `onFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
166
+
*
167
+
* `onFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
Copy file name to clipboardExpand all lines: packages/svelte/types/index.d.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -408,6 +408,13 @@ declare module 'svelte' {
408
408
* @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead
409
409
* */
410
410
exportfunctionafterUpdate(fn: ()=>void): void;
411
+
/**
412
+
* The `onFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
413
+
*
414
+
* `onFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
0 commit comments