Next.js Discord

Discord Forum

Is there a way to get the url params inside a loading function?

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
I want to display some parameters inside my loading component. Is there a way to do it?

1 Reply

Perhaps try converting loading.tsx with "use client" and use the useParams() hook.