tribou / react-template

Build a server-rendered React app and share code across web, React Native, and Electron
Apache License 2.0
4 stars 9 forks source link

Browser sync reloading stopped working #46

Closed tribou closed 7 years ago

tribou commented 7 years ago

First issue: server/dev.index.js was set to return when stats.hasErrors(), and eslint-loader was throwing errors causing the reload to never fire.

Second issue: babel-preset-react-native has it's own HMR config that's conflicting with the server HMR. We need to specify different a different babel config when running the dev script than when running React Native (dev-i and dev-a)

tribou commented 7 years ago

@davidcurras @zacacollier @doskogerman server HMR is now fixed on master 🎉 Project now contains working server-rendered react for web + React Native with shared redux store and containers.