@hyperfrontend/state-machine/selectorsselectors
Predicate functions for querying async-process state out of a Store snapshot.
notStarted, inProgress, done, successful, failed, retrying, restarting, halted, paused, and cancelled answer single-question predicates over a process state. derivedState returns the canonical phase string for a process so UI code can render a single source-of-truth label instead of testing each predicate. All selectors are pure and work over any state slice that conforms to the async-process shape — they are not tied to a specific store instance.
API Reference
● Variables
Selector that checks if operation was cancelled.
Derives a complete state object from the base state.
Selector that checks if operation is done (success or fail).
Selector that checks if operation failed.
Selector that checks if operation is halted.
Selector that checks if operation is in progress.
Selector that checks if operation has not started.
Selector that checks if operation is paused.
Selector that checks if operation is restarting after success.
Selector that checks if operation is retrying after failure.
Selector that checks if operation completed successfully.