OneSignalDevelopers / ngosi

Share your slides with a QR code
https://ngosi.io
MIT License
9 stars 5 forks source link

App flashes when rendering #48

Open iAmWillShepherd opened 2 years ago

iAmWillShepherd commented 2 years ago

I noticed that the app is flashing when rendering on pages that check's the session and auth status before rendering the component. I thought the correct move was implementing the provider pattern (see PR #47), but that had no effect. Auth needs to be revisited, especially since some pages will need to be behind auth while others won't.

The supabaseProvider should also be responsible for routing the user to the correct place when landing on a page that requires auth while not authenticated.

App flashing 'No session' before rendering the page (I'm logged in)

2022-01-03 22 09 05