-
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
Gatsby Hot Reload not working with MDX #30062
Comments
Thank you! The fact that it now (in 3.0) not even refreshes at all on manual reload is a real blocker! |
Any updates on this? This is a blocker for us moving to Gatsby 3. I'm actually surprised that this wasn't fixed prerelease... |
There few issues to solve here - some more problematic than others:
|
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! 💪💜 |
This is a serious blocker. Don't close. |
Update: I can confirm that the bug still persists in Gatsby CLI 3.2.0. And, with this latest version, hot reload with JavaScript pages (not MDX) don't work anymore. |
I don't think this is correct as I can't reproduce this behavior with correctly created pages. If you have any of the limitations (https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#limitations) then it won't work. The original issue with MDX still persists though. |
Is this on the roadmap to being fixed? I'm concerned that Gatsby has reached 3.2 without this being addressed. This is a must-have feature for anyone authoring content in MDX. |
Interestingly enough, my project, which queries for the mdx content using a page query in a template file, does not have any issues with hot reloading MDX. Perhaps hot reloading only doesn't work for |
It's surely on our radar but I can't give you exact dates. As my colleague pointed out there are multiple things we need to change to support Putting your MDX files outside of Even when we fix the general behavior, when you'll do exports of non-React components in MDX files Fast Refresh will manually refresh. |
Correct. Me neither. Can't reproduce the Hot-Reload-Issue for none MDX pages. My project still does not hot-reload non MDX pages and I can't locate the error. I did something wrong for sure. |
mfurey has contributed $50.00 to this issue on Rysolv. |
This was fixed with gatsby 3.5.0 and gatsby-plugin-mdx 2.5.0 |
Description
Hot reload / browser refresh does not work with basic MDX setup.
Steps to reproduce
Clone repo gatsby-minimal-mdx-hot-reload-bug-reproduction.
gatsby develop
Edit
src/pages/index.mdx
Expected result
Browsers will not refresh. Sometimes even manual browser reloads will not reflect the changes.
Environment
The text was updated successfully, but these errors were encountered: