Skip to content

Avoiding aditional requests on dynamic path pages that are client components #80077

Answered by icyJoseph
benjavicente asked this question in Help
Discussion options

You must be logged in to vote

Hi,

Yeah, as far as I know, the Next.js is working on some improvements, but you can also do this:

In short, it is not ideal because useParams misbehaves, but usePathname works fine.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benjavicente
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants