Next.js Discord

Discord Forum

UseParams with paraller Routes - bug

Unanswered
Indian mackerel posted this in #help-forum
Open in Discord
Indian mackerelOP
When using paraller routes with useParams(), the useParams keeps previous values when it should be undefined.

-
@admin

--[adminId]
-
@user

--page.tsx

When redirecting from [adminId] to page.tsx the useParams keeps old adminId and shows it instead of undefined

0 Replies