sudoramen
05/17/2022, 7:13 PMmessages
but const sub = supabase.from('messages').on("*", console.log).subscribe()
never prints anything. Is there something I'm missing? Thank you for any help!Needle
05/17/2022, 7:13 PMNeedle
05/17/2022, 7:14 PMRaider [PC]
05/18/2022, 8:07 PMconst regs = supabase
.from('registrations')
.on('*', payload => {
console.log('Change received!', payload)
})
.subscribe((data: any) => {
console.log(data);
})
The above code gave me a Subcribed entry in the console.log but adding new records in the table doesn't log anything.
After I disabled and re-enabled the event types it suddenly started working and events are logged in the console.Needle
05/18/2022, 8:07 PMsudoramen
05/18/2022, 8:29 PMRaider [PC]
05/18/2022, 9:13 PMsudoramen
05/20/2022, 1:40 AM