-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Hot reload does not work with linaria #27626
Comments
@cometkim have you noticed any hot reload issues when using https://github.com/cometkim/gatsby-plugin-linaria? |
@hartshorne just published a new version and tested it with linaria v2, gatsby v2.24.85 on Ubuntu 20.04 Hot reloading works but syncs one step later. Seems It has the same issue with the #26580 |
@cometkim right, so with your updates, i still see the same issue where i have to save twice before hot reload will work. it looks like someone added timing to the verbose logs, this is what i see now: Start server:
Save index.tsx:
(Server frozen, hot reload does not work.) Save index.tsx (again):
New changes finally loaded in browser. |
For me it's a bit different... I already have What's odd (and a bit annoying) is that if I 1) change one style property 2) change something on the JSX part, both updates get to browser right-away. |
using reloads |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Still broken! |
Can you please check if |
Thank you, @vladar. I've upgraded the repro repo (https://github.com/hartshorne/hot-reload-repro) to To test, I change
Have you had a look at the way |
Sorry for the stupid question: 80% is better than it was before or not? 😅 Also, can you post the full console output with the new version (with |
@vladar previously it'd work on every other save -- now it works/breaks less consistently. have you tried editing here's an example where things broke:
|
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Still broken! Anything I can do to help narrow it down? |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Sorry for the late reply - it just requires some time and prioritization. It is still about webpack watching Just needs more debugging to find another cause (there were apparently several distinct causes). |
Can you try it with |
I've opened a PR #30194 that can potentially fix this. You can try it with |
Hi! I'm closing this as a stale issue as in the meantime Gatsby 4 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support. If this is a feature request, please create a discussion as we moved feature requests from issues to GitHub Discussions. Please try the mentioned issue on the latest version (using the Thanks! |
Description
Hot reload does not work with https://github.com/callstack/linaria since 2.24.9
Related issues:
gatsby@2.24.9
#26192Steps to reproduce
Demo project: https://github.com/hartshorne/hot-reload-repro
Using a linaria class, like https://github.com/hartshorne/hot-reload-repro/blob/master/src/pages/index.js:
Expected result
Hot reload should work.
Actual result
Hot reload does not work.
Environment
The text was updated successfully, but these errors were encountered: