function injectAsyncFirestoreListener(store) {
  return function injectFirestoreListener(name, asyncListener) {
    invariant(
      isString(name) && !isEmpty(name) && isFunction(asyncListener),
      '(app/utils...) injectFirestoreListener: Expected `asyncListener` to be a firestore listener function'
    );

    if (Reflect.has(store.asyncFirestoreListeners, name)) return;

    store.asyncFirestoreListeners[name] = asyncListener; // eslint-disable-line no-param-reassign
    asyncListener(store.dispatch);
  };
}
/**
 * Inject an asynchronously loaded firestore listener
 */
Inject an asynchronously loaded firestore listener
Inject an asynchronously loaded firestore listener
function injectAsyncFirestoreListener(store) {
  return function injectFirestoreListener(name, asyncListener) {
    invariant(
      isString(name) && !isEmpty(name) && isFunction(asyncListener),
      '(app/utils...) injectFirestoreListener: Expected `asyncListener` to be a firestore listener function'
    );
    if (Reflect.has(store.asyncFirestoreListeners, name)) return;
    store.asyncFirestoreListeners[name] = asyncListener; 
    asyncListener(store.dispatch);
  };
}
function injectAsyncFirestoreListener ( store ) { return function injectFirestoreListener ( name , asyncListener ) { invariant ( isString ( name ) && ! isEmpty ( name ) && isFunction ( asyncListener ) , '(app/utils...) injectFirestoreListener: Expected `asyncListener` to be a firestore listener function' ) ; if ( Reflect . has ( store . asyncFirestoreListeners , name ) ) return ; store . asyncFirestoreListeners [ name ] = asyncListener ; asyncListener ( store . dispatch ) ; } ; }
Inject an asynchronously loaded firestore listener
Inject an asynchronously loaded firestore listener
// eslint-disable-line no-param-reassign