Skip to content

Function: resetXStateCache()

ts
function resetXStateCache(): void;

Defined in: packages/core/src/fsm/StateMachineGate.ts:174

Reset the XState module cache so that loadXState() will re-attempt the dynamic import on next call.

Intended for test environments where xstate availability may change between test suites via dynamic mocking.

Returns

void