Skip to content

Commit e6035ec

Browse files
authored
Make Limitations clearer to understand (#1472)
* Fix grammar * Fix typos * Clarify the example
1 parent 5301dc8 commit e6035ec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,9 @@ Make sure to watch your bundle size when implementing react-hot-loader to ensure
178178

179179
## Limitations
180180

181-
* (that's the goal) React-Hot-Loader would not change the past, only update the present - no lifecycle event would be called on component update.
182-
As a result - all the code changes, you may made among `componentWillUnmount` or `componentDidMount`, would be ignored for
183-
already created components.
181+
* (that's the goal) React-Hot-Loader would not change the past, only update the present - no lifecycle event would be called on component update. As a result, any code changes made to `componentWillUnmount` or `componentDidMount` would be ignored for already created components.
184182
* (that's the goal) React-Hot-Loader would not update any object, including component `state`.
185-
* (1%) React-Hot-Loader could not reply some changes you may made in components `constructors`. As long as
186-
components would not be recreated - RHL have to _inject_ new data onto existing components, but there is no way to detect the actual change and the way reply it.
187-
React-Hot-Loader knows what class method is, not how you created it. See [#1001](https://github.com/gaearon/react-hot-loader/issues/1001) for details.
183+
* (1%) React-Hot-Loader may not apply some changes made to a component's `constructor`. Unless an existing component is recreated, RHL would typically _inject_ new data into that component, but there is no way to detect the actual change or the way it was applied, especially if the change was made to a function. This is because of the way React-Hot-Loader works - it knows what class functions are, not how they were created. See [#1001](https://github.com/gaearon/react-hot-loader/issues/1001) for details.
188184

189185
## Recipes
190186

0 commit comments

Comments
 (0)