Files
7556611449 fix(next/router): Prevent query delete in routing when next.config basePath option is truthy (#40566)
## Bug

- [x] Related issues linked using `fixes #number`
    - fixes 
        - #38528 
        - #40432
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

Hi, it is my first pull request in this project.
So... if you need anything more tasks, please tell me.

Co-authored-by: JJ Kasper <[email protected]>
2022-09-15 22:56:53 +00:00

12 lines
205 B
JavaScript

import { useRouter } from 'next/router'
export default function DynamicRoutes() {
const { query } = useRouter()
return (
<main>
<h1 id="route-name">{query.routeName}</h1>
</main>
)
}