Skip to content

Commit

Permalink
fix: xstate deprecation warning on null events
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 28, 2020
1 parent 2470ccc commit e44e273
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/machines/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,10 @@ export const overlayMachine = Machine<
},
},
transition: {
on: {
'': [
{ target: 'immediately', cond: 'initiallyOpen' },
{ target: 'smoothly', cond: 'initiallyClosed' },
],
},
always: [
{ target: 'immediately', cond: 'initiallyOpen' },
{ target: 'smoothly', cond: 'initiallyClosed' },
],
},
immediately: {
initial: 'open',
Expand Down

0 comments on commit e44e273

Please sign in to comment.