NeoLegends/velocity-pwa

Throw promises in hooks to trigger suspense

Closed this issue · 2 comments

Right now we have content flashes when the page itself has loaded, but the contents have not. If we make the hooks throw promises (which triggers suspense), React will only show the page when all of the contents have loaded.

We might want to wait until React itself provides a proper solution here. They announced they would provide one in the near future.

This is mostly blocked on React releasing suspense for data fetching. Closing because the app works rather fine in practice. We can come back to this later once React delivers.