Type Alias: NavigationWork<TContext, TStepId, TSnap, TResult>
@rxova/journey-react / NavigationWork
type NavigationWork<TContext, TStepId, TSnap, TResult> = object;Defined in: core/src/core/types.ts:422
Transactional work attached to next/previous navigation.
run is awaited before movement. If it throws, rejects, or times out, the
machine stays on the current step. commit runs synchronously after run
succeeds; its context updates are staged and published atomically with the
position change.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TContext | - |
TStepId extends string | - |
TSnap | - |
TResult | void |
Properties
Section titled “Properties”commit?
Section titled “commit?”readonly optional commit?: (args) => void;Defined in: core/src/core/types.ts:424
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args | NavigationWorkArgs<TStepId, TSnap> & object |
Returns
Section titled “Returns”void
readonly run: (args) => TResult | Promise<TResult>;Defined in: core/src/core/types.ts:423
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args | NavigationWorkArgs<TStepId, TSnap> |
Returns
Section titled “Returns”TResult | Promise<TResult>
timeoutMs?
Section titled “timeoutMs?”readonly optional timeoutMs?: number;Defined in: core/src/core/types.ts:434
Budget for this run, overriding defaultTimeoutMs. Left unset, the
global default applies; set it when this one call is slower than the rest.