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
Copy file name to clipboardExpand all lines: packages/react-router/lib/hooks.tsx
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -233,12 +233,14 @@ function useIsomorphicLayoutEffect(
233
233
*
234
234
* * `to` can be a string path, a {@link To} object, or a number (delta)
235
235
* * `options` contains options for modifying the navigation
236
-
* * `flushSync`: Wrap the DOM updates in [`ReactDom.flushSync`](https://react.dev/reference/react-dom/flushSync)
237
-
* * `preventScrollReset`: Do not scroll back to the top of the page after navigation
238
-
* * `relative`: `"route"` or `"path"` to control relative routing logic
239
-
* * `replace`: Replace the current entry in the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History) stack
240
-
* * `state`: Optional [`history.state`](https://developer.mozilla.org/en-US/docs/Web/API/History/state) to include with the new {@link Location}
241
-
* * `viewTransition`: Enable [`document.startViewTransition`](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for this navigation
236
+
* * These options work in all modes (Framework, Data, and Declarative):
237
+
* * `relative`: `"route"` or `"path"` to control relative routing logic
238
+
* * `replace`: Replace the current entry in the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History) stack
239
+
* * `state`: Optional [`history.state`](https://developer.mozilla.org/en-US/docs/Web/API/History/state) to include with the new {@link Location}
240
+
* * These options only work in Framework and Data modes:
241
+
* * `flushSync`: Wrap the DOM updates in [`ReactDom.flushSync`](https://react.dev/reference/react-dom/flushSync)
242
+
* * `preventScrollReset`: Do not scroll back to the top of the page after navigation
243
+
* * `viewTransition`: Enable [`document.startViewTransition`](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for this navigation
0 commit comments