You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2022. It is now read-only.
But this is such a common use case that it might be nice to either ignore Event objects specifically, or just ignore anything that isn't a "valid" value.
It's also easy to forget this, because onClick={toggle} or onClick={clear} works since they don't care about the event argument in the first place.
Right now, the convenience transforms are "smart" in that if you do:
It will fail because it's actually being called as
increment(event). Instead you have to write it as:But this is such a common use case that it might be nice to either ignore
Eventobjects specifically, or just ignore anything that isn't a "valid" value.It's also easy to forget this, because
onClick={toggle}oronClick={clear}works since they don't care about the event argument in the first place.