mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This makes sure to also check if a dynamic route matched after resolving a rewrite on the client to match behavior on the server. It also adds tests for this behavior to ensure it is working properly. Fixes: https://github.com/vercel/next.js/issues/16454
4 lines
121 B
JavaScript
4 lines
121 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default () => <p id="product">product: {useRouter().query.productId}</p>
|