1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Iterate wording in documentation (#5718)

I came across **Possible spelling mistakes** #5496 and noticed that the current wording could be improved both in terms of accuracy and succinctness.
This commit is contained in:
Curran Kelleher 2018-11-20 19:57:51 -05:00 committed by Tim Neutkens
parent 8af767b52d
commit 19db04f302

View file

@ -536,7 +536,7 @@ Router.beforePopState(({ url, as, options }) => {
});
```
If you return a `false` value from `beforePopState`, `Router` will not handle `popstate`;
If the function you pass into `beforePopState` returns `false`, `Router` will not handle `popstate`;
you'll be responsible for handling it, in that case.
See [Disabling File-System Routing](#disabling-file-system-routing).