export default (firebaseApp, handlers = []) => {
  const firebase = firebaseApp;
  const actions = handlers.reduce((acc, handler) => {
    const handlerActions = handler.mapActionsToApi();
    return { ...acc, ...handlerActions };
  }, {});

  return (action, next) => {
    const { type } = action;
    return actions[type] ? actions[type](firebase, action, next) : next(action);
  };
};

@@ -22,23 +22,23 @@
 aseApp, 
-handler
+service
 s = %5B%5D) 
@@ -92,23 +92,23 @@
 tions = 
-handler
+service
 s.reduce
@@ -114,23 +114,23 @@
 e((acc, 
-handler
+service
 ) =%3E %7B%0A 
@@ -138,23 +138,23 @@
   const 
-handler
+service
 Actions 
@@ -155,23 +155,23 @@
 tions = 
-handler
+service
 .mapActi
@@ -210,15 +210,15 @@
  ...
-handler
+service
 Acti

Update firebase middleware