Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/use-controllable-state

Package Overview
Dependencies
Maintainers
1
Versions
549
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.0.0-dev-20230606151107 to 0.0.0-dev-20230620132312

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.0.0-dev-20230606151107",
"version": "0.0.0-dev-20230620132312",
"description": "Yamada UI useControllableState custom hook",

@@ -27,3 +27,3 @@ "keywords": [

"dependencies": {
"@yamada-ui/utils": "0.0.0-dev-20230606151107"
"@yamada-ui/utils": "0.1.1"
},

@@ -30,0 +30,0 @@ "devDependencies": {

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