how to cache supabase user data
Answered
Bengal posted this in #help-forum
BengalOP
Hey guys how do I cache supabase user data from
supabase.auth.getUser? i know the docs talk about caching a lot with fetch but what about custom implementations of data fetching? ThanksAnswered by ᴉuɐpɹɐɐ
You can use
unstable_cache to cache a function return other than fetch. But its still advisable to use fetch() and i know you can change the supabase fetch with next's fetch1 Reply
@Bengal Hey guys how do I cache supabase user data from `supabase.auth.getUser`? i know the docs talk about caching a lot with `fetch` but what about custom implementations of data fetching? Thanks
You can use
unstable_cache to cache a function return other than fetch. But its still advisable to use fetch() and i know you can change the supabase fetch with next's fetchAnswer