Skip to content

Commit

Permalink
Allow console when deliberately debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed Nov 28, 2024
1 parent 20732f7 commit 71b70c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/machines/search/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { InspectionEvent } from "xstate"

export const debugEvents = (inspectionEvent: InspectionEvent) => {
if (inspectionEvent.type === "@xstate.event") {
// eslint-disable-next-line no-console
console.debug(inspectionEvent.event)
}
}

0 comments on commit 71b70c4

Please sign in to comment.