@react-hookz/web
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -0,1 +1,8 @@ | ||
# [1.9.0](https://github.com/react-hookz/web/compare/v1.8.0...v1.9.0) (2021-04-28) | ||
### Features | ||
* new hook useIsMounted ([#24](https://github.com/react-hookz/web/issues/24)) ([7ad0d7e](https://github.com/react-hookz/web/commit/7ad0d7ed044463ef82987c44ae72f34ec4cd717a)) | ||
# [1.8.0](https://github.com/react-hookz/web/compare/v1.7.5...v1.8.0) (2021-04-28) | ||
@@ -2,0 +9,0 @@ |
@@ -8,1 +8,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { usePrevious } from './usePrevious'; | ||
export { useIsMounted } from './useIsMounted'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
exports.useIsMounted = exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
var useFirstMountState_1 = require("./useFirstMountState"); | ||
@@ -18,1 +18,3 @@ Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } }); | ||
Object.defineProperty(exports, "usePrevious", { enumerable: true, get: function () { return usePrevious_1.usePrevious; } }); | ||
var useIsMounted_1 = require("./useIsMounted"); | ||
Object.defineProperty(exports, "useIsMounted", { enumerable: true, get: function () { return useIsMounted_1.useIsMounted; } }); |
@@ -8,1 +8,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { usePrevious } from './usePrevious'; | ||
export { useIsMounted } from './useIsMounted'; |
@@ -8,1 +8,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { usePrevious } from './usePrevious'; | ||
export { useIsMounted } from './useIsMounted'; |
@@ -8,1 +8,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { usePrevious } from './usePrevious'; | ||
export { useIsMounted } from './useIsMounted'; |
@@ -8,1 +8,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { usePrevious } from './usePrevious'; | ||
export { useIsMounted } from './useIsMounted'; |
{ | ||
"name": "@react-hookz/web", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "React hooks done right, for browser and SSR.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -57,2 +57,4 @@ # ![@react-hookz/web](.github/logo.png) | ||
— Run effect only when component is first mounted. | ||
- [`useIsMounted`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useismounted) | ||
— Returns function that yields current mount state. | ||
- [`useRerender`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usererender) | ||
@@ -59,0 +61,0 @@ — Return callback that re-renders component. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40595
69
683
70