Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscop committed Nov 23, 2018
1 parent 3ee4437 commit 8abfb44
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 @@ -167,6 +167,6 @@ To trigger manual navigation you can use the native `history.pushState()` as [ex
export default id => async dispatch => {
const payload = await ky(`/api/users/${id}`).json();
dispatch({ type: 'USER_DATA', payload });
window.history.pushState(`/dashboard`);
window.history.pushState({}, 'Dashboard', `/dashboard`);
};
```

0 comments on commit 8abfb44

Please sign in to comment.