@reactuses/core 4.0.1 → 4.0.3-beta.1

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.
package/dist/index.cjs CHANGED
@@ -4077,6 +4077,9 @@ function useDocumentVisibility(defaultValue) {
4077
4077
  },
4078
4078
  () => document
4079
4079
  );
4080
+ React.useEffect(() => {
4081
+ setVisible(document.visibilityState);
4082
+ }, []);
4080
4083
  return visible;
4081
4084
  }
4082
4085
 
package/dist/index.mjs CHANGED
@@ -4069,6 +4069,9 @@ function useDocumentVisibility(defaultValue) {
4069
4069
  },
4070
4070
  () => document
4071
4071
  );
4072
+ useEffect(() => {
4073
+ setVisible(document.visibilityState);
4074
+ }, []);
4072
4075
  return visible;
4073
4076
  }
4074
4077
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "4.0.1",
3
+ "version": "4.0.3-beta.1",
4
4
  "license": "Unlicense",
5
5
  "homepage": "https://www.reactuse.com/",
6
6
  "repository": {