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.4 to 1.7.5

7

CHANGELOG.md

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

## [1.7.5](https://github.com/react-hookz/web/compare/v1.7.4...v1.7.5) (2021-04-28)
### Bug Fixes
* rollback husky version and add it to dependabot ignore ([099ea5b](https://github.com/react-hookz/web/commit/099ea5bb95208951e98ea6c894ce135a7b149668))
## [1.7.4](https://github.com/react-hookz/web/compare/v1.7.3...v1.7.4) (2021-04-25)

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

2

cjs/useRerender.d.ts
/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/
export declare function useRerender(): () => void;

@@ -7,3 +7,3 @@ "use strict";

/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/

@@ -10,0 +10,0 @@ function useRerender() {

/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/
export declare function useRerender(): () => void;
import { useCallback, useState } from 'react';
var stateChanger = function (state) { return !state; };
/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/

@@ -6,0 +6,0 @@ export function useRerender() {

/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/
export declare function useRerender(): () => void;
import { useCallback, useState } from 'react';
const stateChanger = (state) => !state;
/**
* Return callback that re-renders component.
* Return callback function that re-renders component.
*/

@@ -6,0 +6,0 @@ export function useRerender() {

{
"name": "@react-hookz/web",
"version": "1.7.4",
"version": "1.7.5",
"description": "React hooks done right, for browser and SSR.",

@@ -41,4 +41,4 @@ "keywords": [

"lint:fix": "yarn lint --fix",
"storybook:watch": "start-storybook -p 6006 --docs",
"storybook:build": "build-storybook --docs -o ./storybook-build",
"storybook:watch": "start-storybook -p 6006 --docs -s ./.storybook/public --no-manager-cache",
"storybook:build": "build-storybook --docs -o ./storybook-build -s ./.storybook/public",
"storybook:deploy": "storybook-to-ghpages -s storybook:build"

@@ -81,2 +81,3 @@ },

"@commitlint/config-conventional": "^12.1.1",
"@jamesacarr/eslint-formatter-github-actions": "^0.1.0",
"@semantic-release/changelog": "^5.0.1",

@@ -108,4 +109,5 @@ "@semantic-release/git": "^9.0.0",

"eslint-plugin-react-hooks": "^4.2.0",
"husky": "4",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jest-github-actions-reporter": "^1.0.3",
"lint-staged": "^10.5.4",

@@ -112,0 +114,0 @@ "prettier": "^2.2.1",

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

— Return boolean that is `true` only on first render.
- [`useMountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemounteffect)
— Run effect only when component is first mounted.
- [`useRerender`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usererender)
— 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)
— Run effect only when component is unmounted.
- [`useUpdateEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useupdateeffect)
— Effect hook that ignores the first render (not invoked on mount).
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