Cant get search parameters in layout as a prop, it returns undefined.
Unanswered
SakalliBob posted this in #help-forum
So basically because I cant get search parameters I had to move the navigation bar inside the page component which means it has to re render every page and its not ideal. Is there any better way to get the search params inside layout with some other technique?
1 Reply
@SakalliBob So basically because I cant get search parameters I had to move the navigation bar inside the page component which means it has to re render every page and its not ideal. Is there any better way to get the search params inside layout with some other technique?
try using parallel route for navbar
// app/@navbar/default.tsx
export default function Default({searchParams}) {}