Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Gabriel Poussif
    @prescottprue How should I combine react-redux-firebase with Algolia?
    Renato Formato
    Hi everyone, is there a way to add subcollections to the profile?
    I have a firestore db and i can read the user profile in state.firebase.profile
    I understand I can connect to the subcollection with firestore, but it won't be reflected in the profile object, so I was just wondering if there's an easy way to do it, or, and this is likely, maybe it's not a good idea?
    Guys, does link from firebase.auth.photoURL still work for you? I see an avatar placehoder photo and something that now a token needs to be used to fetch the Facebook user photo
    also do you know a good example that uses fetchProvidersForEmail to link multiple auth providers? Thanks!
    Try Space
    Hi! Question
    How to maintain/reuse state when queriying same collection again
    Not sure how it is meant to be used, but is there an existing way to keep the state of collections intact without removing the previous state?
    Every time a component renders with useFirestoreConnect, it will clear the existing store, which I'm not even sure if that's expected behaviour.
    It might also be why this issue: prescottprue/react-redux-firebase#914 is causing such a render-blocking issue, because instead of replacing them in quick succession, it is adding them, causing too many re-renders, where replacing them should cause minimal or no change at all.
    Simon B.
    Hi, is there any documentation for how state.firestore.composite behaves if I call useFirestoreConnect from different components that end up under the same key (so same collection, different where) ?
    Daniel Rodríguez Rivero
    Seems this chat is dead right?
    Sherwin Mascarenhas
    Hi i'm trying to source firebase data in react using redux. For this I am using the firebaseConnect component to source the data in to the component. I'm also, using useEffect with the [props.variable], since i've mapped the firebase state to props, but any change on firebase, with regard to the data, isn't being reflected on the ui and I need to force refresh.
    Try Space
    Anyone know a good example of doing pagination where you can also paginate back? And preferably where you have something like < 1 2 3 4 5 6 > and you can go to a specific page, but it's sorted by for example a date, I have no idea how to select a page with a plain number, it doesn't seem to exist? I'm breaking my head over how this is achieved, all I can find is infinite scroll loading use cases ( see for example: prescottprue/redux-firestore#346)
    Đặng Hữu Lộc

    Hello everyone, help me, please!!!
    I use redux-toolkit template cra redux-typescript with react-redux-firebase and i got an error: Property 'firestore' does not exist on type 'DefaultRootState' but i added firestore:firestoreReducer to reducer in configureStore

    export const store = configureStore({
      reducer: {
        counter: counterReducer,
        firebase: firebaseReducer,
        firestore: firestoreReducer,
      middleware: (getDefaultMiddleware) =>
          serializableCheck: {
            ignoredActions: [
              // just ignore every redux-firebase and react-redux-firebase action type
              ...Object.keys(rfConstants.actionTypes).map((type) => `${rfConstants.actionsPrefix}/${type}`),
              ...Object.keys(rrfActionTypes).map((type) => `@@reactReduxFirebase/${type}`),
            ignoredPaths: ['firebase', 'firestore'],
          thunk: {
            extraArgument: {
    export type AppDispatch = typeof store.dispatch;
    export type RootState = ReturnType<typeof store.getState>;
    export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;

    Thanks very much

    Carlos A. Talero Jácome

    TypeError: Object(...) is not a function
    12 |
    13 | const store = createStore(rootReducer,
    14 | compose(

    15 | applyMiddleware(thunk.withExtraArgument({getFirebase, getFirestore})),
    16 | reactReduxFirebase(fbConfig), // redux binding for firebase
    17 | reduxFirestore(fbConfig) // redux bindings for firestore
    18 | )
    this is the problem I am facing when I am connecting react to firestore database

    can anyone help me out??
    Lucas Perrin
    Has someone a template how to configure react-redux-firebase V3 with react-native-firebase 6.x since it has been split up in differents modules ? thanks 😉

    I have tried

    import {createStore, applyMiddleware, compose} from 'redux';
    import rootReducer from '../Redux/Reducers/rootReducer';
    import middlewares from '../Redux/Middleware/middleware';
    import {createFirestoreInstance} from 'redux-firestore'; // <- needed if using firestore
    // import {createFirebaseInstance} from 'react-redux-firebase';
    // Cherry-pick modules of react-native-firebase 6.x
    // import '@react-native-firebase/analytics';
    import '@react-native-firebase/auth';
    // import '@react-native-firebase/crashlytics';
    // import '@react-native-firebase/dynamic-links';
    import '@react-native-firebase/firestore';
    // import '@react-native-firebase/perf';
    // import '@react-native-firebase/remote-config';
    import RNfirebase from '@react-native-firebase/app';
    const firebase = RNfirebase.app();
    const initialState = {};
    // react-redux-firebase config
    const rrfConfig = {
      userProfile: 'users',
      useFirestoreForProfile: true, // Firestore for Profile instead of Realtime DB
      // enableClaims: true // Get custom claims along with the profile
      presence: 'presence', // where list of online users is stored in database
      sessions: 'sessions', // where list of user sessions is stored in database (presence must be enabled)
      enableRedirectHandling: false, // <--- required when using react-native
    // Create store with reducers and initial state
    export const store = createStore(
    export const rrfProps = {
      config: rrfConfig,
      dispatch: store.dispatch,
      createFirestoreInstance, // <- needed if using firestore

    The given error:
    Possible Unhandled Promise Rejection (id: 0):
    TypeError: getFirebase is not a function
    Possible Unhandled Promise Rejection (id: 1):
    Error: You attempted to use "firebase.app('[DEFAULT]').database" but this module could not be found.

    Hi Guys! Is there any reason why when setting up listeners for firestore collections, adding a 2nd listener on the same collection wipes the previous data stored in redux? Is there any way to merge the data coming via the 2nd listener?
    1 reply
    Has anyone been able to figure out how to use firebase v9 with redux efficiently
    Hello everyone, I need help. I have collection called carBrand with props carBrandName and its subcollection called carModel with props carModelName. How can I use firestoreConnect to grab both carBrandName and carModelName linked with each other and store in one object array.
    Diego Chavez
    good morning guys, I am doing maintenance to a react native app connected with firebase, I am needing help to generate a new key to access, since the app is blocked, I would appreciate your help.
    Create MERN App

    Hello Everyone, MERN Stack Boilerplate provides starter kits for building web, desktop and mobile apps in pure JavaScript.


    If you have any query or suggestions. Please let me know.

    Simon B.
    @prescottprue I made prescottprue/react-redux-firebase#1144 that should clean away a bunch of dependabot PRs. An easy win!
    (Also if anyone else reads this and isn't a first time contributor to the repo, feel free to take over my PR and republish it to get it past the first time contributor hurdle :smile: )
    Jon Chin

    anyone have a solution for nested populates? here's an example:

    a user object has a list of favorite songs, which is just a list of ids
    a songs object has a bunch of fields, one being an author reference, which is just a user id

    I want to grab a user's favorite songs and the authors for each song. is there a way to do that through useFirestoreConnect and nested populates?

    Marcos Novaes
    Hello everyone, Me and my team are having a rough time using react redux firebase. The point is, we use the useFirestoreConnect hook, grabbing from a collection, passing the doc param as some string. It works, the point is, this doc string may or may not me present, and when is undefined, useFirestoreConnect brings the whole collection, now that we are scaling, it's raising so much reading costs. Anyone know some other way to accomplish it?
    Stephen Kempin
    Hi all, how can I do a conditional WHERE query in firestoreConnect?
    Hi, it is my first time building something with the new firebase web version 9. When I use the firebase signInWithEmailAndPassword(auth, email, password), nothing happens with the firebase auth redux so I'm missing something. Does someone know what that something is?
    Create MERN App

    Hello Everyone,

    MERN Micro Framework provides starter kits for building web, desktop and mobile apps in pure JavaScript.


    If you have any query or suggestions. Please let me know.

    Hi, is anyone here that is using react-native and also wanna listen to Firestore change and having problem?
    got it working and somehow stopped working with no reason it seems
    using the hook made by the lib called useFirestoreConnect
    but using the manual listener works from w/o any problem from what I can see till now...
    Its has a big bug , when ever i tried loggin in using this package in firebase it increases the read count of the firestore by 11 times
    Omolewa Isaac Damilare
    Good day, I am using version 3.11.0 but the presence is not updating on logout. I tried doing it manually, no success. Anyone have a suggestion?
    How can I stop create user after auto login process??
    I just want make user... not new user login automaticaliy

    I'm not using redux (yet?). I have a sidebar with a list of "todo"-like items, each is a firestore doc. When you click the sidebar it navigates to the "todo detail" page and passes the todo doc as a navigation param so the detail page doesn't need to read the database again.

    This is really annoying when routing to the detail page directly (e.g., deep link), so I decided we would build a "firebase provider" component that maintains a big dictionary of everything we're subscribed to, and if a component ever subscribes to anything we just hand it stuff from a preexisting subscription.

    Is that a good thing to build? Or would I just be reinventing this library? I've never really used redux before and don't want to if possible.