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.11.0 to 1.12.0

cjs/useMediatedState.d.ts

7

CHANGELOG.md

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

1

cjs/index.d.ts

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

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

4

cjs/index.js
"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.
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