@tamagui/use-controllable-state
Advanced tools
Comparing version 1.0.1-beta.75 to 1.0.1-beta.76
@@ -11,3 +11,3 @@ import { useCallbackRef } from "@radix-ui/react-use-callback-ref"; | ||
const handleChange = useCallbackRef(onChange); | ||
const [val, setVal] = useState(prop != null ? prop : defaultProp); | ||
const [val, setVal] = useState(prop ?? defaultProp); | ||
const propWins = strategy === "prop-wins"; | ||
@@ -14,0 +14,0 @@ useEffect(() => { |
{ | ||
"name": "@tamagui/use-controllable-state", | ||
"version": "1.0.1-beta.75", | ||
"version": "1.0.1-beta.76", | ||
"sideEffects": false, | ||
@@ -29,3 +29,3 @@ "source": "src/index.ts", | ||
"devDependencies": { | ||
"@tamagui/build": "^1.0.1-beta.75", | ||
"@tamagui/build": "^1.0.1-beta.76", | ||
"react": "*", | ||
@@ -32,0 +32,0 @@ "react-dom": "*" |
Sorry, the diff of this file is not supported yet
14020