@react-hookz/web
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -0,1 +1,8 @@ | ||
# [1.12.0](https://github.com/react-hookz/web/compare/v1.11.0...v1.12.0) (2021-05-01) | ||
### Features | ||
* new hook useMediatedState ([#32](https://github.com/react-hookz/web/issues/32)) ([9c99e61](https://github.com/react-hookz/web/commit/9c99e61bdcb6abf6f285d676d24de74cd5048c17)) | ||
# [1.11.0](https://github.com/react-hookz/web/compare/v1.10.0...v1.11.0) (2021-04-30) | ||
@@ -2,0 +9,0 @@ |
@@ -12,1 +12,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useSafeState } from './useSafeState'; | ||
export { useMediatedState } from './useMediatedState'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useSafeState = exports.useConditionalUpdateEffect = exports.useConditionalEffect = exports.useIsMounted = exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
exports.useMediatedState = exports.useSafeState = exports.useConditionalUpdateEffect = exports.useConditionalEffect = exports.useIsMounted = exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
var useFirstMountState_1 = require("./useFirstMountState"); | ||
@@ -26,1 +26,3 @@ Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } }); | ||
Object.defineProperty(exports, "useSafeState", { enumerable: true, get: function () { return useSafeState_1.useSafeState; } }); | ||
var useMediatedState_1 = require("./useMediatedState"); | ||
Object.defineProperty(exports, "useMediatedState", { enumerable: true, get: function () { return useMediatedState_1.useMediatedState; } }); |
@@ -12,1 +12,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useSafeState } from './useSafeState'; | ||
export { useMediatedState } from './useMediatedState'; |
@@ -12,1 +12,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useSafeState } from './useSafeState'; | ||
export { useMediatedState } from './useMediatedState'; |
@@ -12,1 +12,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useSafeState } from './useSafeState'; | ||
export { useMediatedState } from './useMediatedState'; |
@@ -12,1 +12,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useSafeState } from './useSafeState'; | ||
export { useMediatedState } from './useMediatedState'; |
{ | ||
"name": "@react-hookz/web", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "React hooks done right, for browser and SSR.", | ||
@@ -102,3 +102,3 @@ "keywords": [ | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-mdx": "^1.12.0", | ||
"eslint-plugin-mdx": "^1.13.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
@@ -105,0 +105,0 @@ "eslint-plugin-prettier": "^3.4.0", |
@@ -76,2 +76,4 @@ # ![@react-hookz/web](.github/logo.png) | ||
- [`useSafeState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usesafestate) | ||
— Like `useState` but its state setter is guarded against sets on unmounted component. | ||
— Like `useState`, but its state setter is guarded against sets on unmounted component. | ||
- [`useMediatedState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemediatedstate) | ||
— Like `useState`, but every value set is passed through a mediator function. |
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
63534
93
1115
79