-
Notifications
You must be signed in to change notification settings - Fork 303
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 workerd HMR #2019
Fix workerd HMR #2019
Conversation
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.
Looking good on my end. Was getting an error on every save but now it works great 🙌
Possible to test it? |
@jamalsoueidan Can you try installing Edit: released in |
Perfect, it works ❤️ |
@frandiox if you run multiply window, it will break as before just to let you know, i can live with one window. |
Ohh interesting, I think I know how to fix that but that will need to wait for a week or two |
Well, enjoy your holiday 👍🏻 When you come back we will look into that! |
I notice that the graphql is not auto updated, I have to terminate dev and boot up again. If graphql not created yet, it will auto-generate the NEW graphql and use it, but if their was any errors, and you fix it, it will not re-generate graphql, so you must terminate and boot up. |
What do you mean with "the graphql"? A graphql query? Codegen? GraphiQL? |
I mean that when you define a GraphQL query and fragment, and use them in your code, it will recognize the query and the types, and you will receive all the values. However, if you modify the fragment again—by adding an ID, handle, or something similar—you won't see these attributes return until you reload the development environment (even if running the codegen in the background) Same goes with CSS, and doesn't work in multiply connections if testing in cypress, and in the browser, it breaks. |
I'm testing with 5 tabs open but I can't break it 😞
I'm trying with something like the following and it updates in all the 5 tabs: ![]() ![]() I've also tried with a separate fragment like this: ![]() However, changing the fields in the query/fragment or the dom nodes seem to be updating in all the 5 tabs 🤔 cc @scottdixon are you able to reproduce this on your end? |
The problem happen when importing, not when it's in the same file. Multiply times I had to terminate the dev to get the latest changes. |
@jamalsoueidan I think I found the problem with the GraphQL thing, thanks for reporting: #2077 |
I been using hydrogen every single day,,, so testing it is my daily routine hehe |
A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished. |
Related to #1998
The problem doesn't show up anymore with these changes with my current setup but I'm not 100% sure that there are no other ways to reproduce it.
🎩 : Check HMR in any way you can think of... and it should work without errors 🤞