rsnext/test/e2e/app-dir/use-params
Jiachi Liu ff3668499a
Make useSearchParams and useParams compatible between app and pages router (#55280)
### `useSearchParams`

server router's query includes both search params and path params, this PR eliminate the path params from `useSearchParams` to make it aligned between app router and pages router

### `useParams`

For pages, we extract the params keys with `getRouteRegex`, and pick them out from `router.query`

Fixes #54242 
Closes NEXT-1536
2023-09-18 12:42:20 +00:00
..
app Ensure useParams return array for catch-all routes (#52494) 2023-07-10 12:04:44 +00:00
next.config.js Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
tsconfig.json Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
use-params.test.ts Make useSearchParams and useParams compatible between app and pages router (#55280) 2023-09-18 12:42:20 +00:00