Hi All, I was curious about SSR - I still don't really understand what its doing but was wondering if its possible to achieve the following :
- Server fetches data from a local api (fast!) and pre-fills a variable in a page and caches it as a pre-rendered page
- User requests page at some point and receives a page with the relevant info already inside with no need to make the API call
Or even better,
- User requests page
- Server populates page with local api (small delay)
- Server serves page with said data
Currently my solution is that I call the api from the page (slow!), and this means that there is a delay before the user sees the result (because I am requesting all the way back to the server instead of handling everything on the server side). Pardon me if this is me misunderstanding what SSR is but it 'feels' right to me (since its rendering on the server side.... or something......)
Or is this completely impossible ? Thanks !