Browse documentation

v-cleanup

Concept. Runs cleanup before patch or detach.

Table of contents

Category

Concept

Public signature

ts
JSX directive: <element v-cleanup={(vnode) => { /* before patch or detach */ }} />

Runtime behavior

v-cleanup runs before a later patch of the vnode and before that vnode detaches.