Skip to content

Commit 06be9c4

Browse files
authored
Merge pull request #21 from statelyai/davidkpiano/do-not-warn-for-action-or-microstep-events
Do not warn for XState events
2 parents b472d1b + a225b37 commit 06be9c4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/stupid-crews-crash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@statelyai/inspect": patch
3+
---
4+
5+
Do not warn for XState events

src/createInspector.ts

+4
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ export function convertXStateEvent(
215215
} satisfies StatelySnapshotEvent;
216216
}
217217
default: {
218+
// Ignore future XState inspection events (assume that they are valid)
219+
if (inspectionEvent.type.startsWith('@xstate.')) {
220+
return undefined;
221+
}
218222
console.warn(
219223
`Unhandled inspection event type: ${(inspectionEvent as any).type}`
220224
);

0 commit comments

Comments
 (0)