usePresenceData
The nearest AnimatePresence's custom, as an accessor: undefined outside one. For a child that shows what the presence was given, such as the direction a carousel is moving in; a leaving element's own exit gets it through a function variant's custom. Motion's usePresenceData. Solid 1's alone.
import { usePresenceData } from "@wardic/solid/v1"
const direction = usePresenceData<1 | -1>()
<p>{direction() === -1 ? "Back" : "Next"}</p>Solid 2
A leaving ward's exit gets the presence's custom through a function variant, as above. What else shows it reads the value the app gave the presence.