easy-peasy: easy-peasy no longer working properly with Fast Refresh

Fast refresh is not working properly with easy-peasy. I’ve reproduced the issue in this codesandbox:

chrome_NVK65pZfLX

I’m not sure what caused this, as it has been working properly previously.

Current versions:

  • easy-peasy@5.0.4
  • react@17.0.2
  • react-scripts@4.0.3
  • react-refresh@0.11.0

One workaround, is to use a // @refresh reset comment - but this is quite tedious.

Maybe related to this issue as well: https://github.com/ctrlplusb/easy-peasy/issues/477

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 19 (4 by maintainers)

Most upvoted comments

@ctrlplusb easy-peasy@5.1.0-alpha.3 is working great! 🎉 Here is the updated sandbox.

The sandbox uses react-scripts, but I’ve also tested it with react with vite & @vitejs/plugin-react.

~1400 unit testst still passing 👍

I’ve been experiencing this same issue as well.

@ctrlplusb @jmyrland fwiw, I tried using the provided codesandbox above and bumping the versions down the to versions found in the linked CRA issue (react, react-dom, and react-scripts) and it still does not seem to work: https://codesandbox.io/s/xenodochial-darkness-ci11b5?file=/src/Counter.tsx

My guess is, that this issue is caused by some peer dependency upgrade related to these packages. I’ll try (as soon as I get some spare time) to go backwards through our revisions to see when this stopped working.