Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[preview] Use visibility query when setting up listener #1342

Merged
merged 1 commit into from
May 31, 2019

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented May 29, 2019

This adds support for specifying the visibility-parameter to @sanity/client. (Described here: https://www.sanity.io/docs/listening#parameters)

It also modifies the preview observer so that it re-fetches a previewed document immediately when receiving a mutation event with visibility: query (https://www.sanity.io/docs/realtime-updates#object-object-events)

@bjoerge bjoerge requested a review from rexxars May 29, 2019 17:35
Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bjoerge bjoerge merged commit c04f49e into next May 31, 2019
@bjoerge bjoerge deleted the preview-use-visibility-query branch May 31, 2019 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants