transitionHooks
Returns the transition machinery while a transition is running, otherwise null.
Returns the transition machinery while a transition is running, otherwise null. Renderers reach
the slot and boundary layers (slotSwap, boundaryHold) only through it: a transition can only be
running once the machinery exists, so this never creates it (a static call that did would keep the
whole machinery in every bundle that renders a Show).
Import#
ts
import { transitionHooks } from "@shadow-js/core/extend";
Signature#
ts
function transitionHooks(): Hooks | null
Returns#
The hooks during a transition callback or lane run, null otherwise.
Examples#
ts
import { transitionHooks } from "@shadow-js/core/extend";
export function boundaryHoldIfTransition() {
return transitionHooks()?.boundaryHold() ?? null;
}