Skip to content
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

HMR not working when default export is an anonymous function #7139

Closed
1 task done
tavoyne opened this issue Aug 11, 2023 · 1 comment
Closed
1 task done

HMR not working when default export is an anonymous function #7139

tavoyne opened this issue Aug 11, 2023 · 1 comment
Labels
bug:unverified external feat:dx Issues related to the developer experience package:dev

Comments

@tavoyne
Copy link

tavoyne commented Aug 11, 2023

What version of Remix are you using?

1.19.3

Are all your remix dependencies & dev-dependencies using the same version?

  • Yes

Steps to Reproduce

Create a new Remix app using npx create-remix@latest, replace the default-exported named function in the index route with anonymous function, start the dev server, and try changing the markup.

Expected Behavior

Changes to the markup to be picked up.

(If this is expected, maybe it should be mentioned in the docs. Can do a PR in this case.)

Actual Behavior

App is rebuilt but changes are not picked up by the browser.

@brophdawg11 brophdawg11 added package:dev feat:dx Issues related to the developer experience labels Aug 11, 2023
@pcattori
Copy link
Contributor

pcattori commented Aug 14, 2023

Duplicate of #6935 . This is a limitation of React Refresh, not Remix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:unverified external feat:dx Issues related to the developer experience package:dev
Projects
None yet
Development

No branches or pull requests

3 participants