alx90
11/02/2021, 3:46 PM//my supabase.js in my lib folder
import { createClient } from "@supabase/supabase-js";
export const supabase = createClient(
"XXXXXXX.co",
"anaon-key"
);
and here my index.js
import { supabase } from "../lib/supabase";
export default function Home(props) {
async function getUsers() {
const { data, error } = await
supabase.from("users").select();
console.log(data);
//data: [] WHTA THE HELL XD ?!
}
useEffect(() => {
getUsers();
}, []);
return (
<div className="App">
<Head>
<title>PageBuilder - Ambitive</title>
<link rel="icon" href="/favicon.ico" />
</Head>
</div>
);
}
here is my data:
I really dont know why im getting no data 😦
I consoled.log my error nad its null so I think the request is successfully :/garyaustin
11/02/2021, 9:04 PMalx90
11/03/2021, 7:09 AM