OneSignalDevelopers / ngosi

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

Convert useSupabase hook to a provider #46

Closed iAmWillShepherd closed 2 years ago

iAmWillShepherd commented 2 years ago

I noticed that the app flashed every auth check. I believe this is due to the component needing to compute the status of each request. Converting the hook to a provider backed by context should make it possible to keep the state in one place and request it when needed.