You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to move our firestore data to a different region and for this I created a new project.
I'm planning to use the old project to authenticate the users, then with custom claim authenticate them in the new project. We use firestore for profile. the authentication part works. I can also store data in the new project, but react-redux-firebase has difficulties populating with the correct firestore user profile.
I'm creating my store like this:
const enhancer = composeEnhancers(
reactReduxFirebase(firebase, reduxFirebaseConfig),
reduxFirestore(firebaseEU),
applyMiddleware(...middleware)
)
const store = createStore(persistedReducer, initialState, enhancer)
if I use firestoreConnect - it appears to read the data from the new project. But the updateProfileInfoOnLogin uses the user's config from the old project.
@prescottprue - I understand that this is rather tricky. reactReduxFirebase doesn't know anything about the reduxFirestore config, so I guess that this is the reason it assumes it should use the firebaseconf instead of the redux conf passed to reduxFirestore. What do you think?
The text was updated successfully, but these errors were encountered:
Interesting use case. I wondering if it would respond the same if you placed reduxFirestore before reactReduxFirebase.
Current Solution Option: You can use two stores and have one app in each then use createFirebaseConnect or createFirestoreConnect and pass the key of the store (defaults to 'store').
Support of multiple apps is something that others have requested, so I'm going to make sure to add that to the list of features that should be part of the next major version. Thanks for reaching out!
I'm trying to move our firestore data to a different region and for this I created a new project.
I'm planning to use the old project to authenticate the users, then with custom claim authenticate them in the new project. We use firestore for profile. the authentication part works. I can also store data in the new project, but react-redux-firebase has difficulties populating with the correct firestore user profile.
I'm creating my store like this:
const enhancer = composeEnhancers(
reactReduxFirebase(firebase, reduxFirebaseConfig),
reduxFirestore(firebaseEU),
applyMiddleware(...middleware)
)
const store = createStore(persistedReducer, initialState, enhancer)
if I use firestoreConnect - it appears to read the data from the new project. But the updateProfileInfoOnLogin uses the user's config from the old project.
@prescottprue - I understand that this is rather tricky. reactReduxFirebase doesn't know anything about the reduxFirestore config, so I guess that this is the reason it assumes it should use the firebaseconf instead of the redux conf passed to reduxFirestore. What do you think?
The text was updated successfully, but these errors were encountered: