Small repo to show the xstate-react fast refresh bug.
To reproduce, install dependencies (yarn install
), start the server (yarn dev
), then:
- In the browser, clicking the toggle button changes the state value from 'foo' to 'bar'
- Change something in the component to trigger a fast refresh
- Click the toggle button. State stops changing 😢