releaseUrl | releaseDate |
---|---|
May 28, 2022 |
-
Extend guard expression to support in guards. In Guards are guards that asserts that a machine is in a given state before executing the transition. Learn more
This helper can be used in inline guards or the gaurds options.
import { guards } from "@zag-js/core" const { isIn } = gaurds const machine = createMachine({ on: { CLICK: { guard: isIn("open"), }, }, states: { open: {}, closed: {}, }, })
-
Export the following type utilities:
StateFrom
: To infer the state information from any machineContextFrom
: To infer the context information from any machineEventFrom
: To infer the event types from any machine
- Add
data-readonly
toitemProps