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
React-states provides a match function to match a given state. Rather than implement something custom everytime to match states in a chart, it would be useful to have a hook which can be used - something like:
New feature request in overmind statecharts:
React-states provides a match function to match a given state. Rather than implement something custom everytime to match states in a chart, it would be useful to have a hook which can be used - something like:
const isInSomeState = useMatchState('MY_CHART', ['STATE1', 'STATE2']);
It is then much easier to control rendering or props - for example
Click me! or {isInSomeState && Click me also!}
The text was updated successfully, but these errors were encountered: