cassiozen / useStateMachine

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

fix: log invalid event provided as object #39

Closed arthurdenner closed 3 years ago

arthurdenner commented 3 years ago

Currently, when doing send({type: 'invalid'}), we get [object Object] logged - demo.

Question: Should we stringify the whole object instead of logging only the type?

cassiozen commented 3 years ago

@all-contributors please add @arthurdenner for code, bug and tests.

allcontributors[bot] commented 3 years ago

@cassiozen

I've put up a pull request to add @arthurdenner! :tada: