Next.js 13, SSR & two queries while using hydration
I have an issue with making two calls at the same time - one from backend and one from client.
For some reason I have console logs with
public investments on server and client. Fromy my understanding, having the config like have (listed below), should perform everything on server side using SSR, without call on client. Any idea how to fix it?
my _app.js
my component:

2 Replies
absent-sapphire•3y ago
Your
queryKey isn't in an array inside of getServerSideProps. You have queryKey: 'publicInvestment' instead of queryKey: ['publicInvestment'] there.correct-apricotOP•3y ago
@DrewDeDude you da boss!!! 👑
thanks