Skip to content

Commit 5d8b9c3

Browse files
committed
Merge pull request #1925 from iest/fix/glossary
Correct RedirectFunction signature in Glossary
2 parents 58bb0ce + 147deb0 commit 5d8b9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The word *params* refers to an object of key/value pairs that were parsed out of
126126
## RedirectFunction
127127
128128
```js
129-
type RedirectFunction = (pathname: Pathname | Path, query: ?Query, state: ?LocationState) => void;
129+
type RedirectFunction = (state: ?LocationState, pathname: Pathname | Path, query: ?Query) => void;
130130
```
131131
132132
A *redirect function* is used in [`onEnter` hooks](#enterhook) to trigger a transition to a new URL.

0 commit comments

Comments
 (0)