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.7.5 to 1.8.0

cjs/usePrevious.d.ts

7

CHANGELOG.md

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

# [1.8.0](https://github.com/react-hookz/web/compare/v1.7.5...v1.8.0) (2021-04-28)
### Features
* new hook usePrevious ([#25](https://github.com/react-hookz/web/issues/25)) ([132032a](https://github.com/react-hookz/web/commit/132032a6193a71e793f320233774d46d9613bc36))
## [1.7.5](https://github.com/react-hookz/web/compare/v1.7.4...v1.7.5) (2021-04-28)

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

1

cjs/index.d.ts

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

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

4

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

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

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

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

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

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

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

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

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

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

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

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

@@ -52,3 +52,3 @@ # ![@react-hookz/web](.github/logo.png)

- #### Lifecycle hooks
- #### Lifecycle
- [`useFirstMountState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usefirstmountstate)

@@ -60,4 +60,2 @@ — Return boolean that is `true` only on first render.

— Return callback that re-renders component.
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle)
— Like `useState`, but can only become `true` or `false`.
- [`useUnmountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useunmounteffect)

@@ -67,1 +65,6 @@ — Run effect only when component is unmounted.

— Effect hook that ignores the first render (not invoked on mount).
- #### State
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle)
— Like `useState`, but can only become `true` or `false`.
- [`usePrevious`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useprevious)
— Returns the value passed to the hook on previous render.
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