CodingDive / xstate-cra-fast-refresh-example

Reproduction of https://github.com/davidkpiano/xstate/issues/995

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduction of services not receiving events after fast refresh

  1. Make any changes
  2. Click something in the UI (e.g toggling a TODO)
  3. Check the console

You should see an error like the following

Warning: Event "TOGGLE_COMPLETE" was sent to stopped service "todo". This service has already reached its final state, and will not transition.
Event: {"type":"TOGGLE_COMPLETE"}

About

Reproduction of https://github.com/davidkpiano/xstate/issues/995

License:MIT License


Languages

Language:JavaScript 83.4%Language:HTML 16.6%