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. |
1 reply
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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?
All reactions