view depending on url?
Answered
Acacia-ants posted this in #help-forum
Original message was deleted.
Answered by Common House-Martin
I would put the slug query in the layout and make the other pages client side and then you can pass it through usecontext
3 Replies
Common House-Martin
why do you need to use usestate just get the the slug and render accordingly?
Original message was deleted
use nested route
detail/[slug]/layout.tsxdetail/[slug]/context/page.tsxdetail/[slug]/upcoming-events/page.tsxCommon House-Martin
I would put the slug query in the layout and make the other pages client side and then you can pass it through usecontext
Answer