Browse documentation

onUpdate

Runs after later patches while the component remains in the rendered tree and may return cleanup.

Table of contents

Category

Value

Import

js
import { onUpdate } from "valyrian.js";

Public signature

ts
(callback: OnUpdateCallback): void

Parameters

ts
callback: OnUpdateCallback

Result

ts
void

Observable effects

A function returned by the callback becomes cleanup for the component lifecycle.

Errors

Throws when called outside component execution.