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
Fix HMR for files imported into routes #2077
Conversation
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
Which release is this to use it? 👯 |
@jamalsoueidan once it's merged to main, it will be available in a |
Is it possible to use this locally right now? It's making my head explode....right now the fetcher.data is also cached... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working!
@juanpprieto How can I use this? which release version? |
@jamalsoueidan Try |
jamalsoueidan@jamals-macbook-pro booking-store % npm run dev:tunnel
Port 3000 is in use, trying another one... Starting tunnel... ╭─ error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ |
You have another Hydrogen instance or other process running on this port. Try to stop it and it should be ok |
I will give it a try, maybe the process didn't terminate, thank you @juanpprieto |
This was not the issue, this started to happen after: |
@jamalsoueidan This has been released in mini-oxygen@3.0.2. I'd suggest using |
@jamalsoueidan, mini-oxygen@3.0.2 was released yesterday. Just in case there is a timing confusion on what you tired. |
Reported here #2019 (comment)
To reproduce the issue:
Create
app/test.ts
with:Import it in
root.tsx
and use it:Change the fields in the fragment. The browser won't update automatically without the changes in this PR.
The real fix is just this line:
hydrogen/packages/mini-oxygen/src/vite/worker-entry.ts
Line 108 in f581aa9