In Next 13 with React Server Components we can fetch data directly in our Components. but how to refetch that data when the state changes in the client component.
For example in Tree Structure Above. Suppose we have some data in Navbar (server-component). What if we want to fetch that data again when state changes in Search Component (client).
We can lift the state up or use context. but how will we implement useEffect like functionality. like when that state change in search component make server component to re render and fetch that data again with new params.
PS : I am trying to learn server component. and it's difficult to wrap head around new React Model & Architecture.