diff --git a/packages/core/src/StateNode.ts b/packages/core/src/StateNode.ts index 5abff6f96a..9c7c764cdc 100644 --- a/packages/core/src/StateNode.ts +++ b/packages/core/src/StateNode.ts @@ -262,7 +262,7 @@ export class StateNode< on: this.on, transitions: [...this.transitions.values()].flat().map((t) => ({ ...t, - actions: t.actions + actions: t.actions.map(toSerializableAction) })), entry: this.entry.map(toSerializableAction), exit: this.exit.map(toSerializableAction),