How to invalidate query made by trpc inside a RSC
In the root page which is a server component, I have fetched some data like this
And I have passed the posts into another component that is a client component, so when we update a
important notes
And I have passed the posts into another component that is a client component, so when we update a
post from that client component how can we invalidate the posts in the root pageimportant notes
- I have used create-t3-app
- in the root page I have used
apiimported from@/trpc/server - in the client component I have used
apiimported from@/trpc/react