feat: realtime updates for study spaces and reports #59

Merged
gk1623 merged 2 commits from realtime into master 2025-06-16 20:29:36 +00:00
5 changed files with 39 additions and 1 deletions
Showing only changes of commit ba05fd478f - Show all commits

View File

@@ -19,7 +19,7 @@
}); });
const spacesChannel = supabase const spacesChannel = supabase
.channel("study_space_updates") .channel("study_space_updates")
.on("broadcast", { event: "study_space_updated" }, (payload) => { .on("broadcast", { event: "study_space_updated" }, () => {
invalidate("db:study_spaces"); invalidate("db:study_spaces");
}) })
.subscribe(); .subscribe();