@react-hookz/web
Advanced tools
Comparing version 1.7.5 to 1.8.0
@@ -0,1 +1,8 @@ | ||
# [1.8.0](https://github.com/react-hookz/web/compare/v1.7.5...v1.8.0) (2021-04-28) | ||
### Features | ||
* new hook usePrevious ([#25](https://github.com/react-hookz/web/issues/25)) ([132032a](https://github.com/react-hookz/web/commit/132032a6193a71e793f320233774d46d9613bc36)) | ||
## [1.7.5](https://github.com/react-hookz/web/compare/v1.7.4...v1.7.5) (2021-04-28) | ||
@@ -2,0 +9,0 @@ |
@@ -7,1 +7,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useRerender } from './useRerender'; | ||
export { usePrevious } from './usePrevious'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
var useFirstMountState_1 = require("./useFirstMountState"); | ||
@@ -16,1 +16,3 @@ Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } }); | ||
Object.defineProperty(exports, "useRerender", { enumerable: true, get: function () { return useRerender_1.useRerender; } }); | ||
var usePrevious_1 = require("./usePrevious"); | ||
Object.defineProperty(exports, "usePrevious", { enumerable: true, get: function () { return usePrevious_1.usePrevious; } }); |
@@ -7,1 +7,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useRerender } from './useRerender'; | ||
export { usePrevious } from './usePrevious'; |
@@ -7,1 +7,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useRerender } from './useRerender'; | ||
export { usePrevious } from './usePrevious'; |
@@ -7,1 +7,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useRerender } from './useRerender'; | ||
export { usePrevious } from './usePrevious'; |
@@ -7,1 +7,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useRerender } from './useRerender'; | ||
export { usePrevious } from './usePrevious'; |
{ | ||
"name": "@react-hookz/web", | ||
"version": "1.7.5", | ||
"version": "1.8.0", | ||
"description": "React hooks done right, for browser and SSR.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,3 +52,3 @@ # ![@react-hookz/web](.github/logo.png) | ||
- #### Lifecycle hooks | ||
- #### Lifecycle | ||
- [`useFirstMountState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usefirstmountstate) | ||
@@ -60,4 +60,2 @@ — Return boolean that is `true` only on first render. | ||
— Return callback that re-renders component. | ||
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle) | ||
— Like `useState`, but can only become `true` or `false`. | ||
- [`useUnmountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useunmounteffect) | ||
@@ -67,1 +65,6 @@ — Run effect only when component is unmounted. | ||
— Effect hook that ignores the first render (not invoked on mount). | ||
- #### State | ||
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle) | ||
— Like `useState`, but can only become `true` or `false`. | ||
- [`usePrevious`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useprevious) | ||
— Returns the value passed to the hook on previous render. |
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
36908
63
591
68