onUpdate
Runs after later patches while the component remains in the rendered tree and may return cleanup.
Table of contents
Category
Value
Import
jsimport { onUpdate } from "valyrian.js";Public signature
ts(callback: OnUpdateCallback): voidParameters
tscallback: OnUpdateCallbackResult
tsvoidObservable effects
A function returned by the callback becomes cleanup for the component lifecycle.
Errors
Throws when called outside component execution.