@superdispatch/ui 0.24.8 → 0.24.9

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.
@@ -1119,7 +1119,7 @@ function useVisibilityObserver(node) {
1119
1119
 
1120
1120
  var observer = new IntersectionObserver(_ref => {
1121
1121
  var [entry] = _ref;
1122
- setState(entry !== null && entry !== void 0 && entry.isIntersecting ? 'visible' : 'invisible');
1122
+ setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
1123
1123
  }, {
1124
1124
  rootMargin,
1125
1125
  threshold