Questions tagged [redux-firestore]
74 questions
8
votes
5 answers
Firebase firestore timestamp to Formatted Date
I am working on a firebase project and for displaying time regarding and entity, what i got is the timestamp. I am working on a react native project. How to convert the received timestamp to properly formatted date.
This is the timestamp:
I have…

FortuneCookie
- 1,756
- 3
- 25
- 41
3
votes
1 answer
how to check if nested docs and collection in firebase exist and if don't how to create, in react native
I am new to Firebase and I have to create a chat system. I found that the doc structure should be nested
e.g if a person sends a message, a new doc with its id will be created in the main collection and then a new collection will be added to the…

sana arshed
- 41
- 5
3
votes
1 answer
Redux-firestore with React
So I have been creating an application where a user needs to log into firebase using google authentication. I am using redux, react-redux, react-redux-firebase, redux-firestore, and redux-thunk. I am able to successfully log the user into firebase…

Ehren
- 85
- 7
3
votes
3 answers
I want to add list of objects to firestore document, - flutter
I want to add list of object to firestore document
I defined product data model
I have also category data model
I want to add list of category to product document in firestore
I added categories to temporary list then put values in…

Hesham Elkotabi
- 193
- 1
- 9
2
votes
1 answer
How can I get a reference to dispatch() in a redux toolkit slice?
I have a redux toolkit slice file with the following code
import { createSlice } from "@reduxjs/toolkit";
const slice = createSlice({
name: "users",
initialState: [],
reducers: {
ADD: (state, {payload}) => {…

Ahmad
- 12,336
- 6
- 48
- 88
2
votes
1 answer
Creating a document every time someone signs up in firebase
so am making a little web Aplication and this is my first time trying to use firebase and React Js at the same time so my problem is am trying to make a document in fireStore every time a new User Signs up
// this is my SignUp Function
async…

Crow V
- 39
- 4
2
votes
1 answer
Iterating collection and trying to get reference field inside documents .get() is not working
I am trying to get a collection then iterating over its documents. inside every document there's a reference field for another collection document. Normally if i query for it then there is no problem but iterating creates a problem
Following the…

Sulman Azhar
- 977
- 1
- 9
- 26
2
votes
1 answer
How to delete a document completely with data inside it in firestore
I'm using reactjs
I want to delete a specific document which is shown in the red box. the document might contain some data. I want to delete the document completely with data inside it. I used the following code to delete the document
…

Gaurav Thakur
- 813
- 7
- 8
2
votes
1 answer
redux-firestore listener error: FirebaseError: Missing or insufficient permissions.?
I am new to firebase and i have an error in console that i really don't know its source:
redux-firestore listener error: FirebaseError: Missing or insufficient permissions.
I don't know is this sufficient to explain my problem, but because i am new…

Saher Elgendy
- 1,519
- 4
- 16
- 27
2
votes
2 answers
Delay in Firestore to create a new document in the users collection
I hope someone can help me with this issue.
I'm currently working on a project in which I use firebase to create new users. So, when someone sign a new user up, firebase creates a new user, then it sends a promise to firestore, so it can create a…

Bernardo Fonseca
- 21
- 4
2
votes
0 answers
Why profile data from react redux firebase isn't loaded?
I'm trying to load profile data via react redux firebase, but it doesn't work.
This is my function to create a new user:
firebase.createUser({ email, password }, { firstName, lastName })
That's the way I'm setting my store:
const rootReducer =…

John
- 21
- 1
2
votes
1 answer
Firestore Timestamp get collection documents not equal to a particular date
I have a Firestore database which contains a list of documents in a collection. Each document has a scheduled date which is a "timestamp" data type. I'm able to get data by the scheduled date, but not able to get all documents not equal to a…

Nishant Singh
- 477
- 4
- 8
1
vote
1 answer
How to make animated tree view with data from sub-collection firestore
This is the my treeview page Scaffold code sample.
I used Animated tree view class
import 'package:animated_tree_view/animated_tree_view.dart';
// Widget build
return Scaffold(
key: _scaffoldKey,
appBar: AppBar(
…

Dev Conductor
- 179
- 2
- 9
1
vote
0 answers
Uncaught (in promise) FirebaseError: Function addDoc() called with invalid data. Unsupported field value: undefined (found in field imgUrls )
when I submit the form to store the data on the firestore db I got this error message:
image 1
the value of images on the state is showen like this :
image 2
I find the same question posted by others but all the answers there is not working
for…
1
vote
0 answers
: Failed to get document because the client is offline. while having internet connection
I am using theme bought from themeforest. Authentication with firebase is fine but when I try to store and get data from firestore it gives me this error.
Failed to get document because the client is offline.
And I have internet connection
this is…

web pakistan
- 444
- 1
- 4
- 16