R
T

AsyncComputedOnCancel

testeddemo

Handle overlapping async evaluations. The provided callback is invoked when a re-evaluation of the computed value is triggered before the previous one finished, letting you abort stale work.

Demo

Loading demo…

Signature

ts
export type AsyncComputedOnCancel = (cancelCallback: () => void) => void;