Fetching data but getting error:null and count:null in console

Here is how i implemented it
const [search,setSearch]=useState('')

const searchUser=useCallback(async()=>{

const data = await supabase.from('profiles').select('name').eq('name',search)
console.log(data)
console.log(search)

},[search])
const [search,setSearch]=useState('')

const searchUser=useCallback(async()=>{

const data = await supabase.from('profiles').select('name').eq('name',search)
console.log(data)
console.log(search)

},[search])
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server