mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Link to popstate doc on MDN (#4150)
This commit is contained in:
parent
fbd023c032
commit
f6949349c1
|
@ -488,7 +488,7 @@ export default () =>
|
|||
#### Intercepting `popstate`
|
||||
|
||||
In some cases (for example, if using a [custom router](#custom-server-and-routing)), you may wish
|
||||
to listen to `popstate` and react before the router acts on it.
|
||||
to listen to [`popstate`](https://developer.mozilla.org/en-US/docs/Web/Events/popstate) and react before the router acts on it.
|
||||
For example, you could use this to manipulate the request, or force an SSR refresh.
|
||||
|
||||
```jsx
|
||||
|
|
Loading…
Reference in a new issue