Sanity Library Reference Docs
    Preparing search index...

    Function _listen

    • Set up a listener that will be notified when mutations occur on documents matching the provided query/filter.

      Type Parameters

      • R extends Record<string, any> = Record<string, any>

      Parameters

      Returns Observable<MutationEvent<R>>

    • Set up a listener that will be notified when mutations occur on documents matching the provided query/filter.

      Type Parameters

      Parameters

      Returns Observable<ListenEventFromOptions<R, Opts>>