Skip to content

Commit

Permalink
use state is
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jul 18, 2024
1 parent 1aea64d commit 00fc3f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
value: box.with(
() => (value === undefined ? { start: undefined, end: undefined } : value),
(v) => {
if (v !== value) {
if (!$state.is(v, value)) {
value = v;
onValueChange(v as any);
}
Expand Down

0 comments on commit 00fc3f2

Please sign in to comment.