@sanity/client 6.18.0 → 6.18.1-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -904,7 +904,7 @@ function _listen(query, params, opts = {}) {
904
904
  }
905
905
  function open() {
906
906
  getEventSource().then((eventSource) => {
907
- eventSource && (es = eventSource);
907
+ eventSource && (es = eventSource, unsubscribed && unsubscribe());
908
908
  }).catch((reason) => {
909
909
  observer.error(reason), stop();
910
910
  });