All Questions
79
questions
0
votes
1
answer
550
views
react redux firebase error while importing firebase, not able to import firebase. how to solve it?
I'm making a project in which I'm using firebase for my database and authentication. but while making my redux store error pops up and says I'm not importing firebase correctly. I exactly copied the ...
1
vote
0
answers
150
views
Firebase Error: <ReactReduxFirebaseProvider></ReactReduxFirebaseProvider> not working, what to do?
I am trying to create a ReactJs App and using Firebase, react-redux and react-redux-firebase for the first time as database and authentication. I am using and following the official documentation to ...
0
votes
1
answer
189
views
Firebase storage path to store images of a social post [closed]
I'm currently working on a social platform where users create posts similar to Facebook or Linkedin. So what I'm trying to achieve is, whenever user create a post they may upload images as part of the ...
0
votes
1
answer
359
views
Dynamically import firebase firestore module causes 'firestore.disableNetwork is not a function'
I'm trying to reduce my bundle size in my CRA React/Redux/Firebase app by dynamically importing Firestore after I have initialized my app.
When I was eagerly importing firebase modules, my form ...
2
votes
1
answer
1k
views
firebase.database() is not a function error in react
To give some context i am trying to setup my react app with redux-toolkit and react-redux-firebase (need firebase realtime db).
i followed the react-redux-firebase readme to create this file
import ...
1
vote
1
answer
139
views
Where should I put my logic for writing new data to Firestore?
I'm currently working on a project with React and Firebase and at the moment my logic to write new data to Firestore is directly in my components. I'm now also integrating Redux, for this I am using ...
1
vote
0
answers
106
views
Redux-React-Firebase Mock Testing
I would like to test my action creator, which takes a task and adds it to firestore and then another also deletes it from firestore. How would I test this code. I assume I need to do some mocking, but ...
0
votes
2
answers
147
views
What could cause React to re-render props such that Firebase query returns the wrong data?
My React Firebase app renders a series of posts that each render a list of comments:
PostList
PostSummary
CommentList
Comment
PostList and CommentList each query a different collection (...
3
votes
0
answers
241
views
How to use LIKE in react-firestore?
I can't figure out how to use the LIKE operator on Firestore with React-redux-firebase.
I would like something similar to this:
Select * from countries where name LIKE %xico% //RESULT = Mexico
I ...
1
vote
0
answers
244
views
How should I modify React state? addDoc() called with invalid data
I would like to upload a image-file to storage of the firebase and put {title , content, createDate etc} in firestore.
but it seems that state.upload file prevents putting it in firestore.
this....
0
votes
1
answer
248
views
React-Redux cannot fetch my collection in Firestore
I am new to Redux and firebase and I have 2 documents under projects collection. However, I am unable to retrieve those collections. Here is my code,
fbConfig.js:
import firebase from 'firebase/app';
...
0
votes
1
answer
2k
views
Cannot read property 'reduce' of undefined data from firebase
I am trying to git the totalBalance of but i face error Cannot read property 'reduce' of undefined and in the same time i can iterate on the clients of the component the code is the below
//redux and ...
1
vote
0
answers
564
views
Is it possible to get 'automatic' updating (binding) from Firestore to a React/Redux app?
I'm wondering whether it's possible to have changes in a Firestore DB automatically reflected in a React app. That is -- if I have the correct terminology -- whether I can bind the two together, with ...
1
vote
0
answers
73
views
Error while trying to implement firebase with react project
While trying to implement Firebase into my react project I am getting this error.
TypeError: Object(...) is not a function.
This is what the code looks like
// Add reactReduxFirebase enhancer when ...
0
votes
1
answer
574
views
React with react-redux-firebase isLoaded is true and isEmpty is seemingly false, yet firebase.auth().currentUser is null - what could be the cause?
so I might have difficulty explaining this issue I am having, which I am not able to reproduce consistently. I have a React app on which I am using react-redux-firebase and that I thought I was ...