Socket
Socket
Sign inDemoInstall

@shopify/react-hooks

Package Overview
Dependencies
Maintainers
24
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-hooks - npm Package Compare versions

Comparing version 0.0.0-snapshot-20230428103020 to 0.0.0-snapshot-20240308174203

2

build/ts/hooks/toggle.d.ts

@@ -5,3 +5,3 @@ /**

*/
export declare function useToggle(initialState: boolean): {
export declare function useToggle(initialState: boolean | (() => boolean)): {
value: boolean;

@@ -8,0 +8,0 @@ toggle: () => void;

{
"name": "@shopify/react-hooks",
"version": "0.0.0-snapshot-20230428103020",
"version": "0.0.0-snapshot-20240308174203",
"license": "MIT",

@@ -48,5 +48,5 @@ "description": "A collection of primitive React hooks",

"devDependencies": {
"@shopify/jest-dom-mocks": "0.0.0-snapshot-20230428103020",
"@shopify/react-testing": "^5.1.3"
"@shopify/jest-dom-mocks": "^5.0.0",
"@shopify/react-testing": "^5.1.4"
}
}

@@ -245,3 +245,3 @@ # `@shopify/react-hooks`

This hook provides an object that contains a boolean state value and a set of memoised callbacks to toggle it, force it to true, and force it to false. It accepts one argument that is the initial value of the state. This is useful for toggling the active state of modals and popovers.
This hook provides an object that contains a boolean state value and a set of memoised callbacks to toggle it, force it to true, and force it to false. It accepts one argument that is the initial value of the state or an initializer function returning the initial value. This is useful for toggling the active state of modals and popovers.

@@ -248,0 +248,0 @@ ```tsx

Sorry, the diff of this file is not supported yet

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