Questions tagged [react-redux-firebase]

192 questions
0
votes
1 answer

while storing data to firebase and updating state in react redux i get the following error

i have written following code .. this is my event action to store the events. in eventAction.js export const storeAndUpdateEvent = (events) => dispatch => { dispatch(setLoading()) d.ref(`/events`).push(events).then( res => { if (res.key)…
0
votes
1 answer

How to disable auth completely on react-redux-firebase?

I'm creating a playground app for the react-redux-firebase with React Native. I want to completely disable the auth module because I only need the Firestore. The docs did not mention this, I think all the examples include the userProfile on the…
0
votes
1 answer

How to write firestore batch in react-redux-firebase

In react-redux-firebase, how do I do a batch write similar to that shown in the firestore docs? (see below) // Get a new write batch var batch = db.batch(); // Set the value of 'NYC' var nycRef =…
Loren
  • 820
  • 2
  • 11
  • 18
0
votes
2 answers

Error rendering react-redux functional component when data is deleted from firestore (useFirestoreConnect)

My ArticleList component is successfully getting & displaying the user's list of articles from firestore when I first load the app. The user can click a "Remove Article" button, which successfully removes the article from the subcollection in…
0
votes
1 answer

firestoreConnect: firestore.ordered is undefined

The layout of my data in Firestore: User documents contain an array of id references to chat documents. Ex: collections /users 'CQATa3f3d2XmBskmmt8hmCJhzcJ2' name: '...' email: '...' chats:…
Greg M
  • 65
  • 2
  • 9
0
votes
1 answer

TypeError: ref.collection is not a function using React-Redux-Firebase/React-Testing-Library

I have been having a ton of trouble trying to render a react-redux-firebase connected component using react-testing-library. I keep getting hit with a [TypeError: ref.collection is not a function] error that crashes my test as soon as I try to run…
0
votes
1 answer

How to get firestore instance with react-redux-firebase?

authAction.js: Here firebase.set is not working neither firestore.set is working. If I'm including getFirestore then it says getFirestore is not a function. And if I'm doing in below way then it says permission denied.…
0
votes
0 answers

Why does “object not function” appear?

I'm trying to connect firebase, but I get such an error: TypeError: Object(...) is not a function My store.js import { compose, createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { reactReduxFirebase, getFirebase }…
luckydev
  • 155
  • 10
0
votes
0 answers

react-redux-firebase doesn't store providerData properly on Firestore

I was using Realtime Database and am now migrating to use Firestore. Previously, I was storing my providerData as an array, since one account can have multiple providers assigned. Right now, I'm trying to keep the same structure for Firestore, but…
Minoru
  • 1,680
  • 3
  • 20
  • 44
0
votes
1 answer

TypeError: middleware is not a function Error | v3 Migration Guide on React Redux Firebase

I was using these packages but Suddenly I got this error on middleware composition when I created a new react app using create-react-app. I have the following packages. Can you please explain to me what am I missing here? HELP Looked up to this…
0
votes
1 answer

React-redux-firebase populate doesn’t work

I tries to replace IDs within my data with other data from Firebase using populate but it doesn't work. I use "firebase": "^7.3.0", "react-redux-firebase": "^3.0.5", "redux": "^4.0.4", "react-redux": "^7.1.3", "redux-thunk": "^2.3.0". My firebase…
Darkleon
  • 13
  • 2
  • 4
0
votes
1 answer

firestoreConnect Query - you can only perform equality comparisons on null ( via whereEqualTo )

I am stuck with this issue from last 2 days and now i decided to post it in here. i don't know what is going wrong and where. everything seems fine and working in screen where i used the where query but when i moved to another screen and try to…
0
votes
1 answer

firebase.auth is not a function when dispatching login action

I'm trying to connect redux and firebase using react-redux-firebase (3.x.x) and react-native-firebase v6 modules. I'm following documentation and examples from react-redux-firebase docs, considering their v3 migration guide, but it seems i just…
0
votes
0 answers

Remove a node from the current branch and add to another branch

I have written the following code to remove a node from the current branch and add it to a different branch. But it only removes the node from the current branch without adding it to the new one. export const unregister = id => { return (dispatch,…
0
votes
1 answer

react-redux-firebase Firestore not ever loading the data

I have a react-native app that is using react-redux-firebase, react-native-firebase to connect to a firestore to return some todo records. There are records in the store, however all that is displayed is the "loading" text. It never updates the…