ff3668499a
### `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
9 lines
148 B
JavaScript
9 lines
148 B
JavaScript
import React from 'react'
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|