cassiozen / useStateMachine

The <1 kb state machine hook for React
MIT License
2.38k stars 47 forks source link

`send` should be stable across re-renders #12

Closed cassiozen closed 3 years ago

cassiozen commented 3 years ago

If the user is passing send down to child components, and these child components use React.memo or PureComponent, the send method will force a render anyways.

Not a huge issue, but it should be dealt with.