All Questions
385
questions
0
votes
0
answers
41
views
Counting documents in firestore collection with react-redux-firebase
I need to count documents in firestore collection and I saw this article https://firebase.google.com/docs/firestore/query-data/aggregation-queries
However the project I am working on currently uses ...
-1
votes
1
answer
44
views
Unexpected key value pairs wrapping my state when using Redux mapStateToProps
I have been working on a React Native app with Firebase and Redux for a few weeks now without any issues with respect to my Redux usage. However, while I was working on something today I began to see ...
1
vote
1
answer
32
views
current user details are getting mapped to all the posts
current user detail are getting mapped to all the posts. As each post is created by a unique user but all the displaying posts throwing current user name and email. using the firebase 9
tryin to store ...
3
votes
1
answer
84
views
Why activeEvent is undefined?
im building a calendar using react, redux, firebase and react big calendar. On the main page i have 2 calendars that are the same but connected to a different collection in firebase each one. In the ...
1
vote
1
answer
58
views
why it shows me only one collection from CloudFirestore?
im building a calendar using react, redux, firebase and react big calendar. On the main page i have 2 calendars that are the same but connected to a different collection in firebase each one. if i use ...
0
votes
1
answer
134
views
Firestore startAt() and Redux serializable vs non-serializable issue
I'm at a cross-roads in my Firebase project and needs some general guidance. Here are the facts as I've understood them from research:
Firestore queries have a handy feature for pagination (startAt / ...
1
vote
1
answer
123
views
redux state is not resetting to initial state value
In my header component, there is a sign in link when the user signs in the user is authenticated and stored in firesbase and when they sign out the 'currentUser' state is set to its initial value (...
0
votes
2
answers
803
views
React: How to create Cart for logged in users using FIrebase?
I'll explain in simple language.
I've created an eCommerce React App, I made login/signup feature using Firebase, I'm adding Product items to the <Cart /> component (just like every shopping ...
0
votes
2
answers
150
views
Infinite Loop using React, Redux and Firebase
I have a collection of profile documents in firebase and I want to render them in the profiles page, however after I have updated the userProfiles state and use useDispatch to store the state in the ...
0
votes
1
answer
500
views
How to unsubscribe from firebase realtime listener if listener is redux action?
I am trying to figure out best way to combiner firebase and redux.
I have collection which I need to listen changes to.
This is redux action that subscribe to that collection and on result dispatch ...
1
vote
0
answers
173
views
RTK query send data, is coming back manipulated
At work, I need to make an infinite scroll pagination with RTK-query. I am using Firestore as a DB, and I made a very basic version with just async functions super quickly. Now I need to convert what ...
1
vote
1
answer
221
views
Uncaught TypeError: Cannot add property 0, object is not extensible || using Firestore, Redux, createAsyncThunk
I am getting that error when trying to subscribe to realtime updates on firestore via onSnapshot(), using it inside the async function of createAsyncThunk with redux react tools.
The function doesnt ...
1
vote
1
answer
77
views
Can't run UpdateDoc function when using Redux and FireBase
PersonalSlice.js
export const updatePersonal = createAsyncThunk("personal/updatePersonal", async (id, {getState})=>{
const personalDoc = doc(db, "Personal", id)
await ...
0
votes
0
answers
767
views
WEBPACK_IMPORTED_MODULE_5__.default.collection is not a function while building react.js app [duplicate]
I'm making a webapp using react.js and firebase but it's showing this error, i know this is because of v9 of firebase module does not contain db. This is my code:
const { id } = useParams();
const ...
0
votes
1
answer
585
views
Why I am getting undefined from the localStorage?
I am trying to learn firebase by reading their documentation. I have added login using google account and email password. When I click on log in, I am dispatching setLogInValue and the state is ...