Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

[Feature] Proper support for @live directive + support @defer directive #29

Open
alexstrat opened this issue Sep 23, 2019 · 1 comment

Comments

@alexstrat
Copy link
Contributor

As of today, any query and the whole query is considered as @live query (ie queries for which we emit results when it changes).

I think proper support for the @live directive should look like this:

  • result of executing a query is not live if the directive is not present: it produces an Observable that completes after the first result
  • only specific fields can be marked as @live or the whole operation can be marked as @live

Support for @defer directive.

@DanielMSchmidt
Copy link
Contributor

Sounds like a good idea, we just need to add a pipe(take(1)) if there is a directive present

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants