question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with Hot reloading in Development Env

See original GitHub issue

something 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:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rt2zzcommented, Sep 18, 2016

@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.

0reactions
jasan-scommented, Sep 25, 2016

Yes Sir, that fixed the issue 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found