prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

TypeError: undefined is not an object (evaluating 'configs.enableLogging') #1026

Open tarunkishore2303 opened 3 years ago

tarunkishore2303 commented 3 years ago

image

Here is my code for store:

const store = createStore(
  allReducers,
  compose(
    applyMiddleware(thunk.withExtraArgument({getFirebase, getFirestore})),
    createFirebaseInstance(firebase, rrfConfig),
  ),
);

I get this error after I include firebase instance inside my compose as instructed in this issue. Any fixes ?

prescottprue commented 3 years ago

Can you provide a full reproduction example? Seems like this can happen if config is undefined (i.e if rrfConfig in your snippet was undefined)

tarunkishore2303 commented 3 years ago

Here is the repro. But for now I haven't added those config. Can you please add and check ?

https://github.com/tarunkishore2303/aegis

prescottprue commented 3 years ago

Haven't gotten a chance to look at this yet, will try to get to it at some point soon, but it seems to have to do with configs not being passed. If you are still early in the project and don't definitely need data in redux you may want to give reactfire a try