gorbypark
07/22/2022, 4:08 PMlet {data, error} = await supabase.from('food').select('*'); might just "fail" with a Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. warning? Inspecting the network shows it's not even making a call to the api. I have calls to superbase.auth.signUp working fime... js
let {user, error} = await supabase.auth.signUp({
email: email,
password: password,
});
i'm not quite sure what i'm doing wrong here...Needle
07/22/2022, 4:08 PMgorbypark
07/22/2022, 4:17 PMScott P
07/22/2022, 4:32 PMdetectSessionInUrl: false in your createClient function.
Make sure you add import AsyncStorage from "@react-native-async-storage/async-storage"; and then set localStorage: AsyncStorage as any, in createClient too.
Require cycles usually indicate that you have a file importing another file, which is then importing the first file. Sometimes that's like a -> b -> a, other times it's a longer loop like a -> b -> c -> d -> a. I've found it doesn't usually cause many problems, but always worth seeing if you can refactor to remove the warningScott P
07/22/2022, 4:33 PMgorbypark
07/22/2022, 4:40 PMgorbypark
07/22/2022, 4:42 PM