MCPcopy
hub / github.com/crxjs/chrome-extension-tools / UseMachineOptions

Interface UseMachineOptions

src/xstate_helpers.ts:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41export interface UseMachineOptions<
42 TContext,
43 TEvent extends EventObject,
44> {
45 /**
46 * If provided, will be merged with machine's `context`.
47 */
48 context?: Partial<TContext>
49 /**
50 * The state to rehydrate the machine to. The machine will
51 * start at this state instead of its `initialState`.
52 */
53 state?: StateConfig<TContext, TEvent>
54}
55
56export const useConfig = <TContext, TEvent extends EventObject>(
57 service: Interpreter<TContext, any, TEvent, any>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected