New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/use-controllable-state

Package Overview
Dependencies
Maintainers
1
Versions
577
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-controllable-state - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

3

dist/index.js

@@ -34,3 +34,4 @@ "use strict";

const [defaultValue, setDefaultValue] = (0, import_react.useState)(props.defaultValue);
const controlled = props.value !== void 0;
const controlledRef = (0, import_react.useRef)(props.value !== void 0);
const controlled = controlledRef.current;
const value = controlled ? props.value : defaultValue;

@@ -37,0 +38,0 @@ const setValue = (0, import_utils.useCallbackRef)(

{
"name": "@yamada-ui/use-controllable-state",
"version": "0.1.1",
"version": "0.1.2",
"description": "Yamada UI useControllableState custom hook",

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

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