UEA-PRODEM
This commit is contained in:
+1
-1
@@ -151,7 +151,7 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
||||
onChange(uncontrolledState);
|
||||
}
|
||||
}
|
||||
}, [onChange, uncontrolledState, prevValueRef, isControlled]);
|
||||
}, [uncontrolledState, prevValueRef, isControlled]);
|
||||
const state = React2.useMemo(() => {
|
||||
const isControlled2 = controlledState !== void 0;
|
||||
if (isControlled2) {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -114,7 +114,7 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
||||
onChange(uncontrolledState);
|
||||
}
|
||||
}
|
||||
}, [onChange, uncontrolledState, prevValueRef, isControlled]);
|
||||
}, [uncontrolledState, prevValueRef, isControlled]);
|
||||
const state = React2.useMemo(() => {
|
||||
const isControlled2 = controlledState !== void 0;
|
||||
if (isControlled2) {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+12
-12
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@radix-ui/react-use-controllable-state",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"license": "MIT",
|
||||
"source": "./src/index.ts",
|
||||
"main": "./dist/index.js",
|
||||
@@ -11,18 +11,16 @@
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@radix-ui/react-use-effect-event": "0.0.2",
|
||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
||||
"@radix-ui/react-use-effect-event": "0.0.3",
|
||||
"@radix-ui/react-use-layout-effect": "1.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^19.0.7",
|
||||
"@types/react-dom": "^19.0.3",
|
||||
"eslint": "^9.18.0",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0",
|
||||
"typescript": "^5.7.3",
|
||||
"@types/react": "^19.2.2",
|
||||
"@types/react-dom": "^19.2.2",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"typescript": "^5.9.3",
|
||||
"@repo/builder": "0.0.0",
|
||||
"@repo/eslint-config": "0.0.0",
|
||||
"@repo/typescript-config": "0.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -37,14 +35,16 @@
|
||||
"homepage": "https://radix-ui.com/primitives",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/radix-ui/primitives.git"
|
||||
"url": "git+https://github.com/radix-ui/primitives.git",
|
||||
"directory": "packages/react/use-controllable-state"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/radix-ui/primitives/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --max-warnings 0 src",
|
||||
"lint": "oxlint --max-warnings 0 src",
|
||||
"clean": "rm -rf dist",
|
||||
"reset": "rm -rf dist node_modules",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"build": "radix-build"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user