react-redux-firebase

react-redux-firebase error 'Firebase instance does not yet exist. Check your compose function.'

喜欢而已 提交于 2021-01-27 23:32:33
问题 I'm using 'react-redux-firebase' in my project and want to integrate firebase into react-thunk. Everything works fine on local but I got error when deploy project to Firebase hosting. Uncaught Error: Firebase instance does not yet exist. Check your compose function. What is the problem here? store.js import { createStore, compose, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { reduxFirestore, getFirestore } from 'redux-firestore'; import { reactReduxFirebase,

Choose firestore subcollection when connecting component to redux with react-redux-firebase

萝らか妹 提交于 2020-08-09 09:04:26
问题 I am using react-redux-firebase 's fireStoreConnect() middleware with a screen in my react-native mobile app. At the time of connecting the component to the redux store, I want to specify the firestore sub-collection I connect to, which depends on the user that is navigating the app. How should I specify the collection in firestoreConnect ? The user id is in the redux store. MWE: import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { compose } from

Choose firestore subcollection when connecting component to redux with react-redux-firebase

懵懂的女人 提交于 2020-08-09 09:04:16
问题 I am using react-redux-firebase 's fireStoreConnect() middleware with a screen in my react-native mobile app. At the time of connecting the component to the redux store, I want to specify the firestore sub-collection I connect to, which depends on the user that is navigating the app. How should I specify the collection in firestoreConnect ? The user id is in the redux store. MWE: import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { compose } from

How to setup react-redux-firestore in NEXT.JS

僤鯓⒐⒋嵵緔 提交于 2020-07-22 14:14:34
问题 I am migrating from my Create React App (client-side-rendering) to Next JS (server-side rendering) due to SEO reasons. Migrating was going well until using React-Redux-Firebase / Firestore. This is the page I am trying to load: Discover.js import React, { Component } from 'react' import { firestoreConnect, isEmpty } from 'react-redux-firebase'; import { compose } from 'redux' import { connect } from "react-redux"; import { blogpostsQuery } from '../blogposts/blogpostsQuery'; import

object is not a function when calling `useFirestoreConnect`

那年仲夏 提交于 2020-07-09 14:49:46
问题 I'm using react-redux-firebase and redux-firestore packages. I'm trying to connect firestore to redux using the useFirestoreConnect hook, but after calling this hook it gives me a TypeError like in this picture. I've searched in the GitHub issues, docs and here but I'vent fount any solution. The error: Uncaught (in promise) TypeError: Object(...) is not a function you see the whole error in this picture: The console.log error The TypeError returned 回答1: Hello guys I figure out where the

“TypeError: Object(…) is not a function” react-redux-firebase

杀马特。学长 韩版系。学妹 提交于 2020-03-13 09:41:04
问题 I'm trying to create a project in React and I'm using Firebase. In my react-redux-firebase project one line of code making error but I couldn't fix that. How could I fix this "TypeError: Object(...) is not a function" I have searched for this problem but couldn't fix the problem. I'm following a tutorial where the react version is 16.4.1. I'm not sure this is the problem or not index.js file import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from ".

React-Redux-Firebase - populate item with another item

回眸只為那壹抹淺笑 提交于 2019-12-24 16:47:56
问题 I am using react-redux-firebase. This is how my firebase data looks like once user submit the form: It pushes information to "contacts" and images to "uploadedFiles"(also used for file Storage path). I really want to have it as one item. Something like: contacts = { kydfsdcfasdfsadf :{ email: "user@gmail.com", firstName: Tom, lastName : "Smith", uploasedFiles:{ downloadURL:"dsfsdfsdsdvsdfgdsfgds", fullPath:"dfsdfsdf", mame:"q34deser4wefwsdf" } } } I feel like I should use Populate, but I can

Firestore to query by an array's field value

余生长醉 提交于 2019-12-21 02:36:05
问题 I'm trying to run a simple query, where I search for a document that contains a value inside an object array. For instance, look at my database structure: I want to run a query similar to this: db.collection('identites').where("partyMembers", "array-contains", {name: "John Travolta"}) What is the correct way to achieve this, is it even possible with Firestore? Thanks. 回答1: The array-contains operations checks if an array, contains a specific (complete) value. It can't check if an array of

react-redux-firebase not populating profile in firebase reducer

感情迁移 提交于 2019-12-13 08:44:40
问题 react-redux-firebase isn't populating user profle in firebase reducer even after a successful signIn width auth.signInWithEmailAndPassword method and data exist users/${uid}.As I'm storing data in firestore so I've configured react-redux-firebase as: const reduxFirebaseConfig = { userProfile: 'users', attachAuthIsReady: true, useFirestoreForProfile: true, updateProfileOnLogin: false }; Reducer in redux-dev-tool: firebase > profile {isLoaded: false, isEmpty: true}. Note: Working with react

react-redux v6 a v3.*.* version of react-redux-firebase is required

北慕城南 提交于 2019-12-04 17:55:19
问题 I've been working on a project using react-redux-firebase, which has worked for me before. today I got the following error: I'm not sure if the error is somewhere else in my code or if I have to update react-redux-firebase to version 3. . , which doesn't seem to exist as of now. Has anyone else had this issue? I'd be grateful for any suggestions. Here are the dependencies in my package.json: "dependencies": { "firebase": "^5.7.0", "react": "^16.6.3", "react-dom": "^16.6.3", "react-redux": "^6