FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests