Not working with Hot reloading in Development Env
See original GitHub issuesomething to do with the use stateful component assume.
const App = () => (
<MuiThemeProvider>
<Provider store = {store}>
{getRoutes(checkAuth)}
</Provider>
</MuiThemeProvider>
)
injectTapEventPlugin()
**// class AppProvider extends Component {
// constructor () {
// super()
// this.state = { rehydrated: false }
// }
// // componentWillMount () {
// // persistStore(store, {}, () => {
// // this.setState({ rehydrated: true })
// // })
// // }
// render () {
// // if (!this.state.rehydrated) {
// // return <div>Loading...</div>
// // }
// return (
// <Provider store={store}>
// <App />
// </Provider>
// )
// }
// }**
ReactDOM.render(
<App/>,
document.getElementById('app')
)
Problem was the code in bold. But without this I can’t delay the render. What to do?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Hot Reload is not working in my React App - Stack Overflow
Hot Reload is not working in my React App · This does happen sometimes. Do npm install and try adding some code. ·...
Read more >React hot reload not working for changes made in index.js
Changes made in index.js is not reflecting on the UI, hence hot reloading fails. For all other files, hot reload works just fine...
Read more >How To Enable Hot Reloading for .env Files in Next.js
Let's learn how to make Next.js hot reload your .env files without having to relaunch the local development server or manually reload the...
Read more >Dev environment Hot reloading not working : r/reactnative
I'm trying to get a React Native development environment set up and cannot seem to get hot reloading working properly.
Read more >How to fix the NextJS HMR(hot reload ... - DEV Community
With that problem solved you can now continue with your development and enjoy the many benefits of NextJS and a Linux environment inside...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jasan-s I released a tentative version of this in 4.0.0-alpha3, if you have a chance please give it a try and let me know how that goes.
Yes Sir, that fixed the issue 👍