Doug
 · Founder at Reffo

**RESOLVED** Red screen flash when I navigate to a page.

Resolved

I have a doc ref in Firestore that I use to read on page load. I then populate the page with the details. But, when I first visit the page, everything flashed red for a second.

Is there a way I can put a delay on this to let the data return, or can I have a loading modal or something better than the red screen? Any suggestions are welcome!

Current flow:
Button press > nav to page > (On page load) if document ref is passed, then read document > create a datatype in my page state to reflect the read > RED SCREEN FLASH < set variables on the page with the new page state.

1
6 replies