pub type NotifyFn<State, Action, Event, Effect> = fn(&Store<State, Action, Event, Effect>, Vec<Event>) -> Vec<Event>;
Executes subsequent middleware and then notifies the listeners.