Midas
12/08/2021, 4:03 PMMidas
12/08/2021, 4:03 PMjs
useEffect(() => {
GameServices.getPerson(setAdmin)
GameServices.getTeams(setTeams);
GameServices.getTime(setTime);
supabaseClient
.from('*')
.on('*', payload => {
console.log('Change received!', payload)
GameServices.getTeams(setTeams);
GameServices.getTime(setTime);
console.log('Change received!', payload)
}).subscribe((status)=>{console.log('subscribe',status);})
},[]);
On the console I can see that the subscription status is SUBSCRIBED, and I currently have Replication enabled for all events and for all tables in my DB. I'm also using RLS policies.garyaustin
12/08/2021, 4:38 PMMidas
12/08/2021, 4:44 PMgaryaustin
12/08/2021, 4:58 PMMidas
12/09/2021, 12:29 AMgaryaustin
12/09/2021, 2:21 AM