Skip to content

Commit 9cb7766

Browse files
committed
fix: checkbox multiple rerender issue
1 parent 44faa80 commit 9cb7766

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"@react-native-aria/slider": "^0.2.5-alpha.1",
189189
"@react-native-aria/tabs": "^0.2.7",
190190
"@react-native-aria/utils": "^0.2.8",
191-
"@react-stately/checkbox": "^3.0.1",
191+
"@react-stately/checkbox": "3.0.1",
192192
"@react-stately/collections": "^3.3.0",
193193
"@react-stately/combobox": "^3.0.0-alpha.1",
194194
"@react-stately/radio": "^3.2.1",

src/components/primitives/Checkbox/Checkbox.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const Checkbox = (
7272
const inputProps = React.useMemo(() => groupItemInputProps, [
7373
groupItemInputProps.checked,
7474
groupItemInputProps.disabled,
75-
groupItemInputProps,
7675
]);
7776

7877
const [contextCombinedProps] = React.useState({

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@
25982598
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.1.0.tgz#e42b1bef12d2415411519fd528e64b593b1363dc"
25992599
integrity sha512-W/J0fNYVO01tioHjvYWQ9m6RgndVtbElzYozBq1ZPrHO/iCzlqoySHl4gO/fpCl9QEFjvJfjPgtPMTMlsoq5DQ==
26002600

2601-
"@react-stately/checkbox@^3.0.1":
2601+
"@react-stately/checkbox@3.0.1", "@react-stately/checkbox@^3.0.1":
26022602
version "3.0.1"
26032603
resolved "https://registry.yarnpkg.com/@react-stately/checkbox/-/checkbox-3.0.1.tgz#2e48a2085f1559549df62c1eda78299127acaf80"
26042604
integrity sha512-5rUx31X2NX78+vu/Ig4F9u0GnCeLAKD9N+BeGZXzJ/pTBIxoS/iAd9hegic4HKeulSrdYgNEpy3MMUPxhM9BkQ==

0 commit comments

Comments
 (0)