MCPcopy
hub / github.com/sveltejs/svelte / afterUpdate

Function afterUpdate

packages/svelte/src/index-client.js:223–233  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

221 * @returns {void}
222 */
223export function afterUpdate(fn) {
224 if (component_context === null) {
225 e.lifecycle_outside_component('afterUpdate');
226 }
227
228 if (component_context.l === null) {
229 e.lifecycle_legacy_only('afterUpdate');
230 }
231
232 init_update_callbacks(component_context).a.push(fn);
233}
234
235/**
236 * Legacy-mode: Init callbacks object for onMount/beforeUpdate/afterUpdate

Callers

nothing calls this directly

Calls 2

init_update_callbacksFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected