Commit cee024f
committed
fix(overmind-statechart): avoid throwing config error when fast refresh kicks in
React's fast refresh reruns `statechart` when a module that contains this call is edited.
As the statechart was already initialized, a config error was thrown since `states` and `matches` were already present in the current state.
To avoid throwing this error, it is now only thrown when the statechart is first initialized.1 parent 574e486 commit cee024f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
0 commit comments