New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easy-peasy no longer working properly with Fast Refresh #723
Comments
Thanks for the report. I'm utilising Easy Peasy again, also across React Native which might interest some. :) I'm gonna take a look at this DX again. |
Definitely some strangeness going on. I can't see what or why, but there is some possibly related discussion with this issue. |
Absolutely. It used to work fine before (with CRA), but at some point it stopped working. I'm not exactly sure when or what caused this. I'll try to go through our git history to pinpoint when it stopped working. We continually update dependencies, so an unrelated dependency update might be the culprit. Let me know if there is anything I can do to help out the debugging process 👍 |
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. |
I've tried going back through all dependency updates (1 year back) in our repository, but the issue still persists. I know that this has not been an issue for this long, so I'm out of ideas as to what is causing this issue. Let me know if there is anything else I can assist with, to get this issue fixed. |
If I disable Ideally, I'd like to enable
When a component utilizes It seems that after a fast refresh of a component, the easy-peasy state is temporarily detached from the component - until the file is changed again, as state is fed into the component again, but only once after the update. |
+1 to this issue, I'm seeing the issue in NextJS 12.1 with hot reload. |
We've migrated from The issue still persists, because the plugin is configured with After editing Update: If I add |
Hi, did some have any updates on problem? I also experienced it on NextJS and it took me some hours to find this issue 😄 |
Sorry, there is no fix for this at the moment. The only solution we've found is to use the "refresh reset" comment specified above. |
@jmyrland this is a more general question that I may just open a separate issue for, but do you know if the community can expect any support or active maintenance of this project moving forward? It seems as if the core maintainer has gone dark for a while and issues are beginning to pile up. I completely understand how difficult it can be to maintain an OSS project but just looking to manage some expectations here. The build I have is currently working well in most scenarios but I have some open issues here that I'd love some insight on. Thanks. |
I can't speak for @ctrlplusb and his commitment to this project. But I've got nothing but postitive feedback in regards to his work on this project. Previously, he has gone out of his way to provide patches to previous bugs & highly requested features, and it has been the most responsive OSS experience I've had. I find that this project is quite stable despite the recent lack of activity. We use it quite extensively in our production code and have yet to find any critical issues with easy-peasy. I've only got this issue, which is just a DX-improvement if there is a solution for it. |
@jmyrland That's great to hear, thanks for your reply. I saw you were labeled a contributor so figured you might have some insight. Glad to hear you're using in production code and find it reliable, however. Given that, is there any chance you can comment on #732 and whether or not you've experienced this issue and whether this is expected behavior? |
It appears to be working for me in the latest alpha, which brings support for React 18; Could ya'll please test. |
Sweet! Will test it first thing tomorrow 👍 |
@ctrlplusb The sandbox uses ~1400 unit testst still passing 👍 |
Fixed in v5.1.0 🎉 |
Fast refresh is not working properly with easy-peasy. I've reproduced the issue in this codesandbox:
I'm not sure what caused this, as it has been working properly previously.
Current versions:
One workaround, is to use a
// @refresh reset
comment - but this is quite tedious.Maybe related to this issue as well: #477
The text was updated successfully, but these errors were encountered: