showduhtung
showduhtung
TTCTheo's Typesafe Cult
Created by showduhtung on 12/27/2024 in #questions
how to pass searchParams around in next app server components?
Hey guys, as the title says, how do you guys pass around searchParams without an incredible amount of prop drilling? I'm in a position where most of my app and fetches lives in server component land, which feels pretty ideal. The only thing is that with trees of server components, I'm forced to prop drill my params and searchParams into every component, which would've been fine, if it wasn't for the fact that there is already a solved pattern in client side react with context and stores. Does anyone else feel this way too and/or how do you go about this?
13 replies