Merge pull request #406 from cloojure/patch-6

small clarification
This commit is contained in:
Juho Teperi 2018-12-09 11:08:52 +02:00 committed by GitHub
commit e4b16ba545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -195,9 +195,9 @@ So this notion of "changed" is pretty important. It controls if we are doing un
### Lifecycle Functions
When `props` change, the entire underlying React machinery is engaged. React Components can have lifecycle methods like `component-did-update` and these functions will get called, just as they would if you were dealing with a React Component.
When `props` change, the entire underlying React machinery is engaged. Reagent Components can have lifecycle methods like `component-did-update` and these functions will get called, just as they would if you were dealing with a React Component.
But ... when the rerender is re-run because an input ratom changed, **Lifecycle functions are not run**. So, for example, `component-did-update` will not be called on the Component.
But ... when the re-render occurs because an input ratom changed, **Lifecycle functions are not run**. So, for example, `component-did-update` will not be called on the Component.
Careful of this one. It trips people up.