SSR fetches without data results going into store #2647
rpicucci
started this conversation in
Community Recipes
Replies: 1 comment 4 replies
-
That data needs to go into the store - how would the client be able to render it after hydration without it being in the store? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I know that I can use RTKQuery to do SSR fetches and have that information end up in the store but can I do a fetch on the server using RTKQuery and process the results myself without storing it? For every page get, we make an api call that results in some generic html which we stuff into a div as part of our page structure. Can you and are there any examples of doing fetches that don't end up in the store? I'd like one solution for data fetches and although we use redux as our primary caching for application state, we do occasionally make SSR fetches that end up being processed on the server by our code.
Beta Was this translation helpful? Give feedback.
All reactions