Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
f6949349
Commit
f6949349
authored
Apr 13, 2018
by
Tim Phillips
Committed by
Tim Neutkens
Apr 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to popstate doc on MDN (#4150)
parent
fbd023c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
readme.md
readme.md
+1
-1
No files found.
readme.md
View file @
f6949349
...
@@ -488,7 +488,7 @@ export default () =>
...
@@ -488,7 +488,7 @@ export default () =>
#### Intercepting `popstate`
#### Intercepting `popstate`
In some cases (for example, if using a
[
custom router
](
#custom-server-and-routing
)
), you may wish
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.
For example, you could use this to manipulate the request, or force an SSR refresh.
```
jsx
```
jsx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment