Apologies in advance if I totally misunderstood the point of loader functions since I'm new to Remix.
Inside routes/index.tsx (my home page) I have a couple external API fetches that are ~100ms each. My understanding of loader functions (inside a route, not a component) is that the render would be delayed until they're complete.
However in this case, the page is rendering before the API calls are completed and returned from the loader, resulting in an application error when trying to loop the suggestions or featured responses:
TypeError: Cannot read properties of undefined (reading 'map')
What am I missing here? Tried to wrap them in a Promise to avoid waterfall calls, but no attempted fixes have prevailed.