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
I am not sure if others have felt a similar use case for firing events directly while checking/unchecking the <Switch /> component instead of setting local state and then taking action according to the new state. I'm not saying that the default behavior should be scrapped, but is there scope for this kinda behavior that the above example portrays?
I would love to hear from the Blueprint team as well as the community. ✌️
The text was updated successfully, but these errors were encountered:
Environment
Question
Is it possible to fire custom
onClick
handlers onchecked
as well as onunchecked
states for the<Switch />
component?For eg,
I am not sure if others have felt a similar use case for firing events directly while checking/unchecking the
<Switch />
component instead of setting local state and then taking action according to the new state. I'm not saying that the default behavior should be scrapped, but is there scope for this kinda behavior that the above example portrays?I would love to hear from the Blueprint team as well as the community. ✌️
The text was updated successfully, but these errors were encountered: