Javascript – Get Page Params in Nested Next.js layout with App Router
I have a nested dynamic page structure using catchall routes in Nextjs App Router as follows: app/stay/ |__[...category] | |__page.js |__[uid] | |__page.js |__layout.js I have a context provider in the 'layout.js' which holds data for a filtering function and…