Closed ryardley closed 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
I guess this one can be closed now.
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