Skip to content

Commit

Permalink
[client] Use correct URL for observable source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Drevon authored and bjoerge committed Nov 15, 2017
1 parent c385000 commit 337537a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const subscription = client.listen(query, params)

`client.listen(query, params = {}, options = {includeResult: true})`

Open a query that listens for updates on matched documents, using the given parameters (if any). The return value is an [Observable](https://github.com/sanity-io/observable). When calling `subscribe()` on the observable, a subscription is returned which can be used to unsubscribe from the query.
Open a query that listens for updates on matched documents, using the given parameters (if any). The return value is an [Observable](https://github.com/sanity-io/sanity/tree/master/packages/@sanity/observable). When calling `subscribe()` on the observable, a subscription is returned which can be used to unsubscribe from the query.

The objects which are emitted always contain `mutation`, which is an object containing the mutation which triggered the document to appear as part of the query.

Expand Down

0 comments on commit 337537a

Please sign in to comment.