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.8.0 to 1.9.0

cjs/useIsMounted.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.9.0](https://github.com/react-hookz/web/compare/v1.8.0...v1.9.0) (2021-04-28)
### Features
* new hook useIsMounted ([#24](https://github.com/react-hookz/web/issues/24)) ([7ad0d7e](https://github.com/react-hookz/web/commit/7ad0d7ed044463ef82987c44ae72f34ec4cd717a))
# [1.8.0](https://github.com/react-hookz/web/compare/v1.7.5...v1.8.0) (2021-04-28)

@@ -2,0 +9,0 @@

1

cjs/index.d.ts

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

export { usePrevious } from './usePrevious';
export { useIsMounted } from './useIsMounted';

4

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0;
exports.useIsMounted = exports.usePrevious = exports.useRerender = exports.useToggle = exports.useUnmountEffect = exports.useUpdateEffect = exports.useMountEffect = exports.useFirstMountState = void 0;
var useFirstMountState_1 = require("./useFirstMountState");

@@ -18,1 +18,3 @@ Object.defineProperty(exports, "useFirstMountState", { enumerable: true, get: function () { return useFirstMountState_1.useFirstMountState; } });

Object.defineProperty(exports, "usePrevious", { enumerable: true, get: function () { return usePrevious_1.usePrevious; } });
var useIsMounted_1 = require("./useIsMounted");
Object.defineProperty(exports, "useIsMounted", { enumerable: true, get: function () { return useIsMounted_1.useIsMounted; } });

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

export { usePrevious } from './usePrevious';
export { useIsMounted } from './useIsMounted';

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

export { usePrevious } from './usePrevious';
export { useIsMounted } from './useIsMounted';

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

export { usePrevious } from './usePrevious';
export { useIsMounted } from './useIsMounted';

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

export { usePrevious } from './usePrevious';
export { useIsMounted } from './useIsMounted';
{
"name": "@react-hookz/web",
"version": "1.8.0",
"version": "1.9.0",
"description": "React hooks done right, for browser and SSR.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -57,2 +57,4 @@ # ![@react-hookz/web](.github/logo.png)

— Run effect only when component is first mounted.
- [`useIsMounted`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useismounted)
— Returns function that yields current mount state.
- [`useRerender`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usererender)

@@ -59,0 +61,0 @@ — Return callback that re-renders 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