mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
Without default value, TS throw error about `createContext` should have `defaultValue` Following this blog, https://kentcdodds.com/blog/how-to-use-react-context-effectively#the-custom-consumer-hook; added `undefined` and checking if the provider is created or not.