Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am using nextjs 13 experimental app with RTK query to make queries SSG,SSR

if RTK query is wrapper around fetch() and in NextJS13 experimental app is also, will they work together? And How I can change queries so they can revalidate, be SSG or SSR?

like image 577
an8ar Avatar asked Nov 17 '25 11:11

an8ar


1 Answers

RTK Query author here. Please don't use the app directory with RTK Query yet. There is too much going on in there that just doesn't make any sense at the moment to get a good story of even using Redux.
It will hopefully become more clear in the nearer future, but at this point there are no good ways of moving Redux state from server to client in a streaming scenario, or to separate state between different requests meaninfully.

like image 128
phry Avatar answered Nov 20 '25 06:11

phry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!