chipilov
11/26/2021, 8:17 AMchipilov
11/26/2021, 8:18 AMletourpowerscombine
11/26/2021, 8:22 AMTiger Abrodi 🐆
11/26/2021, 9:11 AMTiger Abrodi 🐆
11/26/2021, 9:11 AMTiger Abrodi 🐆
11/26/2021, 9:11 AMjs
React.useEffect(() => {
const userOnUpdateSubscription = supabase
.from(`users:userId=eq.${currentAuthUser?.id}`)
.on('UPDATE', (payload) => {
console.log('Change received!', payload)
})
.subscribe()
return () => {
supabase.removeSubscription(userOnUpdateSubscription)
}
}, [currentAuthUser?.id])
Am I doing something wrong here 🤔Tiger Abrodi 🐆
11/26/2021, 9:12 AMTiger Abrodi 🐆
11/26/2021, 9:12 AMTiger Abrodi 🐆
11/26/2021, 9:12 AMTiger Abrodi 🐆
11/26/2021, 9:15 AMjs
React.useEffect(() => {
const userOnUpdateSubscription = supabase
.from('users')
.on('*', (payload) => {
console.log('Change received!', payload)
})
.subscribe()
return () => {
supabase.removeSubscription(userOnUpdateSubscription)
}
}, [currentAuthUser?.id])
This doesn't work too, cmon boss 😩Maus
11/26/2021, 9:32 AMcopple
11/26/2021, 10:42 AMchipilov
11/26/2021, 11:57 AMjonny
11/26/2021, 2:45 PMHarryET
11/26/2021, 2:47 PMFatuma
11/26/2021, 3:26 PMHarryET
11/26/2021, 4:18 PMFatuma
11/26/2021, 5:28 PMTiger Abrodi 🐆
11/26/2021, 6:08 PMTiger Abrodi 🐆
11/26/2021, 6:08 PMHarryET
11/26/2021, 8:16 PMeric11
11/26/2021, 8:58 PMuser
11/26/2021, 10:36 PMcopple
11/26/2021, 11:59 PMbent
11/27/2021, 12:59 AMstorage.from("").getPublicURL("")
This will however not return the public URL you get from the UI, which ends with the file name, but one that ends on the file id:
client: https://[].supabase.co/storage/v1/object/public/[your bucket name]/[file id]
(also notice how one reads supabase.in and the other one supabase.co)
ui: https://[].supabase.in/storage/v1/object/public/[your bucket name]/[file name]
now the issue is that the url the client returns actually 400s:
{"statusCode":"400","error":"Access Denied","message":"Access Denied"}
anonaki
11/27/2021, 3:08 AManothercoder
11/27/2021, 3:49 AMFatuma
11/27/2021, 4:37 AManothercoder
11/27/2021, 8:44 AM