Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
15 replies
polkeng2

nextjs13 do get request with searchbar

Hi, I am currently building a nextjs 13 project, trying to get in touch with the app router and server components.

I currently have a searchbar, which is a client component, and I want it to do a get request from an api with the input from the searchbar. Should that request be done in a client component with something like react-query or is there some work around to be able to fetch inside a server component?
Was this page helpful?