Skip to content
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

Fix hot reloading by making auto-generated route components es6 classes instead of functional components #532

Merged
merged 6 commits into from
Nov 1, 2016

Conversation

KyleAMathews
Copy link
Contributor

(made PR against the wrong branch the first time)

Turns out React-Router route components can't be functional components for hot reloading to work consistently with react-hot-loader-beta6... weird.

React-hot-loader v3 requires all sub components to be required in a
different file.
React-Router route components can't be functional components for hot
reloading to work consistently with react-hot-loader-beta6... weird.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant