-
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
Strange bug with deletePage and createPage #12480
Comments
I defenitely can reproduce. Investigating right now |
Ok, so here are my findings: this deletes pages: gatsby/packages/gatsby/src/bootstrap/page-hot-reloader.js Lines 61 to 71 in 26580a0
because when you re-create page in I think we would need to adjust gatsby/packages/gatsby/src/redux/reducers/pages.js Lines 18 to 20 in 26580a0
so page doesn't change |
gatsby-mdx not working correctly after hot reloading too. So hmr only working correctly with pages that was created programmatically and they are not stateful. |
Bug is fixed with #12671 |
Description
After modifing placeholder file in /src/data/ index page is removed and server returns 404
Steps to reproduce
Repository with code
Expected result
Index page must not be deleted.
Actual result
After hot reloading index page is removed and server returns 404
Environment
System:
OS: Windows 7
CPU: (2) ia32 AMD Athlon(tm) II X2 240 Processor
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
npmPackages:
gatsby: ^2.1.28 => 2.1.28
gatsby-source-filesystem: ^2.0.23 => 2.0.23
The text was updated successfully, but these errors were encountered: