deviana
tRPC Query Invalidation Issue with Client-Side Data Fetching and Initial Data from server component
I’m fetching data using tRPC and passing it to a client component as initial data. The client component then re-fetches the exact same data using tRPC with this initial data as the basis. However, the search field doesn’t seem to invalidate the query properly. Why might this be happening, and how can I ensure the query invalidates as expected?
This is the Server Component code
This is the Client Component code
2 replies