You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[UNSTABLE] Add `unstable_pattern` to the parameters for client side `unstable_onError`, refactor how it's called by `RouterProvider` to avoid potential strict mode issues
Copy file name to clipboardExpand all lines: docs/api/hooks/useNavigate.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,14 @@ The returned function signature is `navigate(to, options?)`/`navigate(delta)` wh
32
32
33
33
*`to` can be a string path, a [`To`](https://api.reactrouter.com/v7/types/react_router.To.html) object, or a number (delta)
34
34
*`options` contains options for modifying the navigation
35
-
*`flushSync`: Wrap the DOM updates in [`ReactDom.flushSync`](https://react.dev/reference/react-dom/flushSync)
36
-
*`preventScrollReset`: Do not scroll back to the top of the page after navigation
37
-
*`relative`: `"route"` or `"path"` to control relative routing logic
38
-
*`replace`: Replace the current entry in the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History) stack
39
-
*`state`: Optional [`history.state`](https://developer.mozilla.org/en-US/docs/Web/API/History/state) to include with the new [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html)
40
-
*`viewTransition`: Enable [`document.startViewTransition`](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for this navigation
35
+
* These options work in all modes (Framework, Data, and Declarative):
36
+
*`relative`: `"route"` or `"path"` to control relative routing logic
37
+
*`replace`: Replace the current entry in the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History) stack
38
+
*`state`: Optional [`history.state`](https://developer.mozilla.org/en-US/docs/Web/API/History/state) to include with the new [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html)
39
+
* These options only work in Framework and Data modes:
40
+
*`flushSync`: Wrap the DOM updates in [`ReactDom.flushSync`](https://react.dev/reference/react-dom/flushSync)
41
+
*`preventScrollReset`: Do not scroll back to the top of the page after navigation
42
+
*`viewTransition`: Enable [`document.startViewTransition`](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for this navigation
0 commit comments