Setting the initial data of an useQuery with SSR data
Hello guys,
I have a
Here is the SSR code I currently have:
I have a
NextJS application that I am now trying to list rows of a table called Message. I have to now server rendered it, but I need to refetch it and consider using useQuery aswell. Whats the approach I should use when the inital data should be the SSR one, but then after that im refetching from the client side. Here is the SSR code I currently have: