Skip to content

Commit

Permalink
Merge pull request #273 from Emilios1995/patch-1
Browse files Browse the repository at this point in the history
typo in README
  • Loading branch information
Pavlo Aksonov committed Mar 3, 2016
2 parents 9f43911 + 19cd525 commit 9105507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ You also can do many other interesting things from here, like saving an history

**4. Update your component on focus**
I'm doing it on `componentDidUpdate` of my component of the route named `payment`.
If `global.currentRoute` is `payment` and the previous `global.currentRoute` was different, than the component has just been focused.
If `global.currentRoute` is `payment` and the previous `global.currentRoute` was different, then the component has just been focused.
```javascript
componentDidUpdate(prevProps) {
const prevRoute = prevProps.global.currentRoute
Expand Down

0 comments on commit 9105507

Please sign in to comment.