-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I'm using latest version (2.0.7). Looks like if I change a non-trivial state inside onInput handler, it causes infinite calls to the handler:
I simply modified the original codesandbox: url
Basically, my change is like:
onInput={(e) => {
setV({ ...v, min: e.minValue, max: e.maxValue });
console.log("onInput called");
}}
and it causes the loop;
If I use two separate state variables, everything works fine.
setMin(e.minValue);
setMax(e.maxValue);
ullaskunder1, daler-sz, pinokio221, mahdix, omerfaruk84 and 2 more
Metadata
Metadata
Assignees
Labels
No labels