react-static: Hot reloading not working as expected with markdown template example.
Are you reporting a bug?
Yes
Hot reloading not working as expected with markdown template example.
https://github.com/nozzle/react-static/tree/master/examples/markdown
Environment
react-static -v
: 5.9.3node -v
: v10.1.0yarn --version or npm -v
: 6.0.1- Operating system: Arch Linux
Steps to Reproduce the problem
- Install markdown template example
- Navigate to your new project
- Start the dev server
- Open http://localhost:3000 in browser
- Make an edit to
src/App.js
hot reloading works - Make an edit to
content/about.md
hot reloading doesn’t work
Expected Behavior
Hot reloading should work for markdown content
The static.config.js
should be watching the markdown content and running reloadRoutes
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 20 (5 by maintainers)
Commits related to this issue
- fix hot reloading in this example. See https://github.com/nozzle/react-static/issues/606 — committed to FeFB/react-static by FeFB 6 years ago
Hot reloading has been revamped in v6 (currently beta). This should be fixed now.
I managed to fix it. I think the problem is with .babelrc merging… My
.babelrc
had the antdesign plugin:Hot reload is working after I changed it to
v5.8.6 - the reload works. v5.8.8 - does not work v5.9.1 - does not work v5.9.2 - does not work v5.9.3 - does not work
An update signal comes from the server. But the page is not updated.
@threebasicparts @happypeter do either of you have “react-hot-loader/babel” included in your .babelrc file?
{ "extends": "react-static/.babelrc", "plugins": ["react-hot-loader/babel"] }