@react-hookz/web
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -0,1 +1,8 @@ | ||
# [1.11.0](https://github.com/react-hookz/web/compare/v1.10.0...v1.11.0) (2021-04-30) | ||
### Features | ||
* new hook `useSafeState` ([#31](https://github.com/react-hookz/web/issues/31)) ([0718afe](https://github.com/react-hookz/web/commit/0718afe1569d2b900147bc9756ba3fba0a1bdde5)) | ||
# [1.10.0](https://github.com/react-hookz/web/compare/v1.9.1...v1.10.0) (2021-04-28) | ||
@@ -2,0 +9,0 @@ |
@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useConditionalUpdateEffect } from './useConditionalUpdateEffect'; | ||
export { useSafeState } from './useSafeState'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useConditionalUpdateEffect = exports.useConditionalEffect = exports.useIsMounted = exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0; | ||
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"); | ||
@@ -24,1 +24,3 @@ Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } }); | ||
Object.defineProperty(exports, "useConditionalUpdateEffect", { enumerable: true, get: function () { return useConditionalUpdateEffect_1.useConditionalUpdateEffect; } }); | ||
var useSafeState_1 = require("./useSafeState"); | ||
Object.defineProperty(exports, "useSafeState", { enumerable: true, get: function () { return useSafeState_1.useSafeState; } }); |
@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useConditionalUpdateEffect } from './useConditionalUpdateEffect'; | ||
export { useSafeState } from './useSafeState'; |
@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useConditionalUpdateEffect } from './useConditionalUpdateEffect'; | ||
export { useSafeState } from './useSafeState'; |
@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useConditionalUpdateEffect } from './useConditionalUpdateEffect'; | ||
export { useSafeState } from './useSafeState'; |
@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState'; | ||
export { useConditionalUpdateEffect } from './useConditionalUpdateEffect'; | ||
export { useSafeState } from './useSafeState'; |
{ | ||
"name": "@react-hookz/web", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "React hooks done right, for browser and SSR.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -25,7 +25,8 @@ # ![@react-hookz/web](.github/logo.png) | ||
As hooks was introduced to the world in React 16.8, `@react-hookz/web` requires - you gessed | ||
it - `react` and `react-dom` 16.8+. | ||
Also, as React does not support IE, `@react-hookz/web` does not do so either. You'll have to | ||
transpile your `node-modules` in order to run in IE. | ||
As hooks was introduced to the world in React 16.8, `@react-hookz/web` requires - you gessed it | ||
- `react` and `react-dom` 16.8+. | ||
Also, as React does not support IE, `@react-hookz/web` does not do so either. You'll have to | ||
transpile your `node-modules` in order to run in IE. | ||
## Usage | ||
@@ -75,1 +76,3 @@ | ||
— Returns the value passed to the hook on previous render. | ||
- [`useSafeState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usesafestate) | ||
— Like `useState` but its state setter is guarded against sets on unmounted 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
58922
87
1022
77