Skip to content

[RFC]: Add support for Realtime Cells #485

@Tobbe

Description

@Tobbe

How about Cedar supports cells that instead of just firing off a gql query when they load, they set up a subscription (or a live query). So that their data is always up-to-date.

It'd be cool if they could just detect if there's a second subscription query exported in the cell, and then also wire up useSubscription() in addition to useQuery()

Outstanding questions:

  • Are all the same states needed as for regular queries?
  • How do we make sure users don't over-reach for subscriptions (when a simple polling solution would suffice)
  • What would support for live queries look like?
  • What updates would be needed to our generators?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions