Open dmicic opened 5 years ago
Would be nice to have the option to pass in purely a filter string or maybe a array into the useBusReducer
const state = useBusReducer(initial, reducer, "auth.signin.**"));
instead of
const state = useBusReducer(initial, reducer, (dispatch, bus) => bus.subscribe("auth.signin.**", dispatch));
for custom subscriber.
This is also related to the proposed breaking changes here: https://github.com/ryardley/ts-bus/issues/18#issuecomment-528875878
Is this ok to close?
Would be nice to have the option to pass in purely a filter string or maybe a array into the useBusReducer
instead of
for custom subscriber.