A dispatch function that cna update the transition state manually. This should really not be used too much unless your transition is for appear only transitions. For those cases, you can watch for a value change and just trigger the ENTER transition again:
const prevThing = useRef(thing);
if (thing !== prevThing.current) {
prevThing.current = thing;
dispatch(ENTER);
}
Note: This should be dispatched during the render to get the correct timing.
A ref that must be passed to a DOM node for the transition to work. This technically should not need to be passed to a DOM node for non-css transitions or transitions that do not require access to a DOM node, but it it seems like too much work to make it conditional for those types for transitions.
Boolean if the component should be rendered in the DOM. This will always be
true if the temporary option is omitted or false. Otherwise, it will
be true during the transitions and entered.
The current stage for the transition. This probably won't be used too much unless you want to apply custom classnames based on the stage.
Generated using TypeDoc
Boolean if the transition is in the initial mounting/appearing stage while entering. This will be
falseif theappearoption isfalseand automatically set tofalseafter the first transition ifappearwastrue.