Browse documentation

onCleanup

Runs before each patch of the vnode subtree and before that subtree detaches.

Table of contents

Category

Value

Import

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

Public signature

ts
(callback: Function): void

Parameters

ts
callback: Function

Result

ts
void

Errors

Throws when called outside component execution.