Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-hookz/web

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hookz/web - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

cjs/useSafeState.d.ts

7

CHANGELOG.md

@@ -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 @@

1

cjs/index.d.ts

@@ -11,1 +11,2 @@ export { useFirstMountState } from './useFirstMountState';

export { useConditionalUpdateEffect } from './useConditionalUpdateEffect';
export { useSafeState } from './useSafeState';

4

cjs/index.js
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc