Illia
06/02/2022, 4:13 PMdb.from('projects').stream(['id', 'title', 'votes']).execute().map((list) {
return list
.map((columns) => Project.fromJson(columns))
.toList();
});
here is another one that is not triggered either
db.from('projects').on(SupabaseEventTypes.all, (payload) {
print("update");
print(payload);
}).subscribe();
Should it work or am I missing anything? Or it's not triggered at all if I make updates from the console (admin web app)?mansueli
06/02/2022, 5:02 PM.listen(something)
in the first one.
You can also run this example and compare it with how you are using:
https://github.com/supabase-community/flutter-chat/
This file here makes realtime calls:
https://github.com/supabase-community/flutter-chat/blob/6f5b03f44313b7ca355cf9b353a8ecf39f872a51/lib/cubits/rooms/rooms_cubit.dartmansueli
06/02/2022, 5:02 PMmansueli
06/02/2022, 5:03 PMIllia
06/02/2022, 5:19 PMmansueli
06/02/2022, 5:35 PM