useIsPresent

Whether a child of an AnimatePresence is still present: false from its leave on, while its exit plays. Its own effects and bindings have ended by then, so a binding such as disabled={!present()} never sees false: it's for what still runs on the element, an event handler or a timer. To act as the child leaves, use usePresence. Motion's useIsPresent. Solid 1's alone.

It takes the child's element, or an accessor of it:

import { useIsPresent } from "@wardic/solid/v1"

let el!: HTMLButtonElement
const present = useIsPresent(() => el)
<button ref={el} onClick={() => present() && save()}>Save</button>

Outside a presence, always true.

Solid 2

A ward under a presence reads its own leave: !ward.exiting() is what this was.