Skip to content
This repository was archived by the owner on Sep 11, 2018. It is now read-only.

Commit ab45cb7

Browse files
author
David Zukowski
authored
docs(readme): simply hot reload explanation
1 parent dd7f0f7 commit ab45cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The project structure presented in this boilerplate is **fractal**, where functi
107107

108108
Hot reloading is enabled by default when the application is running in development mode (`yarn start`). This feature is implemented with webpack's [Hot Module Replacement](https://webpack.github.io/docs/hot-module-replacement.html) capabilities, where code updates can be injected to the application while it's running, no full reload required. Here's how it works:
109109

110-
* For **JavaScript** modules, a code change will trigger the application to re-render from the top of the tree. Global state is preserved, but any local component state is reset. This differs from React Hot Loader, but we've found that performing a full re-render helps avoid subtle bugs caused by RHL patching. It's important to understand that global state (e.g. your redux store) will persist even when the application re-renders from an HMR update, so it's much more useful than a normal live reload which refreshes the entire page.
110+
* For **JavaScript** modules, a code change will trigger the application to re-render from the top of the tree. **Global state is preserved (i.e. redux), but any local component state is reset**. This differs from React Hot Loader, but we've found that performing a full re-render helps avoid subtle bugs caused by RHL patching.
111111

112112
* For **Sass**, any change will update the styles in realtime, no additional configuration or reload needed.
113113

0 commit comments

Comments
 (0)