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: packages/svelte/src/index-client.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -199,15 +199,15 @@ export function afterUpdate(fn) {
199
199
}
200
200
201
201
/**
202
-
* The `onFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
202
+
* The `onAnimationFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
203
203
*
204
-
* `onFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
204
+
* `onAnimationFrame` 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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -411,12 +411,12 @@ declare module 'svelte' {
411
411
* */
412
412
exportfunctionafterUpdate(fn: ()=>void): void;
413
413
/**
414
-
* The `onFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
414
+
* The `onAnimationFrame` function schedules a callback to run on `requestAnimationFrame`. It must be called inside an effect (e.g. during component initialisation).
415
415
*
416
-
* `onFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
416
+
* `onAnimationFrame` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
0 commit comments