mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This updates the query refreshing on the client to also refresh when rewrites are used and the page is static since additional query values can be provided from rewrites that are relied on client-side. An additional test has been added in the custom-routes suite to ensure this is working correctly. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: https://github.com/vercel/next.js/issues/23490 Fixes: https://github.com/vercel/next.js/issues/22931 Fixes: https://github.com/vercel/next.js/issues/21062
12 lines
248 B
JavaScript
12 lines
248 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function Page() {
|
|
const router = useRouter()
|
|
return (
|
|
<>
|
|
<p id="auto-export-another">auto-export another</p>
|
|
<p id="query">{JSON.stringify(router.query)}</p>
|
|
</>
|
|
)
|
|
}
|