-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: Firebase setup #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| // Initialize Firebase | ||
| // Insert your credentials | ||
| export const config = { | ||
| apiKey: 'AIzaSyBPUuIONtxcQ3efdGpMGbJVEn6fUG_1E5g', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to env
apiKey: process.env.FIREBASE_API_KEY
|
|
||
| export function* addFirebaseDataSaga({ payload }) { | ||
| if (payload.name && payload.age) { | ||
| yield call(rsf.firestore.addDocument, 'user', payload); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each action should dispatch start, end or error
| export default (history) => combineReducers({ | ||
| form: formReducer, | ||
|
|
||
| firebase: firebaseReducer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check immutable
| testSelector, | ||
| mapDispatchToProps, | ||
| ), | ||
| firestoreConnect([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to get firestore collection/element into selector/
Initial Firebase setup with redux-saga-firebase library