1
Declarative real-time updates
Source: supabase/supabase#1671 · opened by @Nick-Mazuk
If I understand the docs correctly, the current realtime SDK simply returns the changed documents to the database. I think it would be far more useful to have an SDK "rerun" the query every time there's an update. For a simple example, let's say you have a dashboard page with a bunch of posts. So you write this simplified React query… …but you want to keep the dashboard page updated in real time. So if someone (maybe even you in another tab) creates, updates, or deletes a post, the page should update to reflect the changes. However, you don't care if the change is a create, update, or delete event. You just care that the data is updated. With the current setup, this is complicated. Now, you'd have to figure out what exactly is changed, then update the data to reflect that. Basically, you're doing imperative work which kindof defeats the purpose of using a declarative framework. Firebase solves this really well. It merges that change w…
No pledges yet. Be the first to back this.
Comments
Similar requests
Make Changes to the DB through a Realtime extension
2 votes · 0 comments
Why do I need to do manual refresh of the realtime token?
1 vote · 0 comments
Individual NPM packages for supabase-js modules?
2 votes · 0 comments
Ability to enable Realtime on Storage objects table
1 vote · 0 comments
Using multiple filters with Supabase Realtime docker container
2 votes · 0 comments
No comments yet.