ryardley / ts-bus

A lightweight JavaScript/TypeScript event bus to help manage your application architecture.
MIT License
135 stars 8 forks source link

Swap useBusReducer input args to be more inline with useReducer #22

Closed ryardley closed 5 years ago

ryardley commented 5 years ago

useBusReducer should have input args swapped as a breaking change.

This means it can act as a drop in replacement for useReducer.

This could be coordinated with an API change to accomodate https://github.com/ryardley/ts-bus/issues/15

Also making it so that we can remove the custom subscriber function in favour of a predicate or a wildcard string filter

dmicic commented 5 years ago

I guess this one can be closed now.