Skip to content

Commit

Permalink
Mention route field in app router migration (vercel#70429)
Browse files Browse the repository at this point in the history
Closes: vercel#59342
  • Loading branch information
ijjk committed Sep 25, 2024
1 parent ccd3fbf commit 4fdfca9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ In addition, the new `useRouter` hook has the following changes:
- `basePath` has been removed. The alternative will not be part of `useRouter`. It has not yet been implemented.
- `asPath` has been removed because the concept of `as` has been removed from the new router.
- `isReady` has been removed because it is no longer necessary. During [static rendering](/docs/app/building-your-application/rendering/server-components#static-rendering-default), any component that uses the [`useSearchParams()`](/docs/app/api-reference/functions/use-search-params) hook will skip the prerendering step and instead be rendered on the client at runtime.
- `route` has been removed. `usePathname` or `useSelectedLayoutSegments()` provide an alternative.
[View the `useRouter()` API reference](/docs/app/api-reference/functions/use-router).
Expand Down

0 comments on commit 4fdfca9

Please sign in to comment.