diff --git a/.changeset/stupid-crews-crash.md b/.changeset/stupid-crews-crash.md new file mode 100644 index 0000000..c5bc23a --- /dev/null +++ b/.changeset/stupid-crews-crash.md @@ -0,0 +1,5 @@ +--- +"@statelyai/inspect": patch +--- + +Do not warn for XState events diff --git a/src/createInspector.ts b/src/createInspector.ts index c1be1ed..201b2c0 100644 --- a/src/createInspector.ts +++ b/src/createInspector.ts @@ -215,6 +215,10 @@ export function convertXStateEvent( } satisfies StatelySnapshotEvent; } default: { + // Ignore future XState inspection events (assume that they are valid) + if (inspectionEvent.type.startsWith('@xstate.')) { + return undefined; + } console.warn( `Unhandled inspection event type: ${(inspectionEvent as any).type}` );