General approach for displaying Firestore data on a page

I'm struggling a bit with a basic concept: What is the best/right way to show data read from Firestore on a page? For most pages, I currently do the Firestore query On Page Load of a page. However, sometimes the data doesn't appear on the page and I Rebuild the page, which again sometimes results into a blank grey page... And of course I don't want to read the same data every time I enter a previously visited page. What would be the basic pattern for displaying Firestore data on page without unnecessary reads from Firestore?

1 reply