Path params are not passed to template.tsx files #62491
Unanswered
xvvvyz
asked this question in
App Router
Replies: 1 comment
-
|
i'm having the exact same problem, any solutions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a technical limitation here, or is this a bug? I would like to show loading fallbacks when switching between pages of a dynamic path with a custom layout. e.g /[listId]/layout.tsx where the layout fetches a list of items based on listId.
Since layouts aren't rerendered between pages, /[listId]/loading.tsx only shows on the first load/list viewed. Fine, I'll use a template! But, it seems templates don't have path/search params passed to them. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions