Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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