Ryan the Temp
12/21/2021, 6:45 PMts
this.supabase.instance
.from<definitions['games']>('games')
.on(SupabaseEventTypes.delete, (payload) => console.log(payload))
.subscribe();
nothing gets logged. I've enabled full table replica like so: alter table "games" replica identity full;
but still it doesn't seem to trigger the event for some reason. 🤔Prodigy7kX
12/21/2021, 10:28 PMalter publication supabase_realtime add table games;
Ryan the Temp
12/21/2021, 10:29 PMRyan the Temp
12/21/2021, 10:29 PMProdigy7kX
12/21/2021, 10:29 PMProdigy7kX
12/21/2021, 10:30 PMProdigy7kX
12/21/2021, 10:31 PMRyan the Temp
12/21/2021, 10:32 PMProdigy7kX
12/21/2021, 10:32 PMProdigy7kX
12/21/2021, 10:32 PMRyan the Temp
12/21/2021, 10:33 PMRyan the Temp
12/21/2021, 10:33 PMProdigy7kX
12/21/2021, 10:33 PMProdigy7kX
12/21/2021, 10:34 PMProdigy7kX
12/21/2021, 10:34 PMProdigy7kX
12/21/2021, 10:34 PMRyan the Temp
12/21/2021, 10:35 PMSupabaseEventTypes
I see its exported in the lib, but can I import it?Prodigy7kX
12/21/2021, 10:35 PMRyan the Temp
12/21/2021, 10:35 PMProdigy7kX
12/21/2021, 10:38 PMimport { SupabaseEventTypes } from "@supabase/supabase-js/src/lib/types"
Prodigy7kX
12/21/2021, 10:39 PMRyan the Temp
12/21/2021, 10:46 PMRyan the Temp
12/21/2021, 10:49 PMon(...)
already has it as a type for the argument, so you're right. Don't need to import it 🤦♂️Prodigy7kX
12/21/2021, 10:52 PMRyan the Temp
12/21/2021, 10:54 PM