Replies: 2 comments 1 reply
-
Hello! Thanks for the evaluation. Here is how it should work: So, before preloadState initialization you can do: I will try to add prefetching example into the next update. |
Beta Was this translation helpful? Give feedback.
-
Hi! You can now check the latest release to see how to do API requests on server side and initialize the preloaded state correctly for SSR. |
Beta Was this translation helpful? Give feedback.
-
Excellent template, thank you.
I am confused as to where would you put an async API call during the server side rendering?
For example to fetch the Pokemon and put it in the initial state alongside the counter value?
Beta Was this translation helpful? Give feedback.
All reactions