I am trying to route to ‘/’ after the user successfully logs in. Currently, in my Login.JS file, I have the handleSubmit function that gets the result from the form: Then, I have a AuthContext that passes the Login context I can see that the user is able to LogIn, however, it doesn’t render anything in the ‘/’ page and
Tag: firebase
Get data from sub-collections in Firebase Firestore using nested query
I have following data structure in firestore: flights [collection] user1 [doc] userFlights [sub collection] flight 1 flight 2 flight 3 user2 [doc] userFlights [sub collection] flight 1 flight 2 flight 3 In order to read the data from all userFlights subcollections i use nested query as shown below. My question: Would nested queries cause performance issues? Thanks in advance Answer
nativescript-firebase ios initialisation ReferenceError: FIROptions is not defined
I have an issue with the firebase initialisation on my nativescript app (nativescript-vue). I am using the nativescript-firebase plugin from https://github.com/EddyVerbruggen/nativescript-plugin-firebase Here is my initialisation: This works fine on android, but on ios, I get the error from my console.log ReferenceError: FIROptions is not defined My firebase.nativescript.json file is the following: I have tried removing and adding the plugin and
React native flatlist return only one item from firestore
I’m new with react native. I’m using a flatlist to render data from firebase (v9). Everything works well, there isn’t any error but, the list show only one item. After searching on differents topic, I think the problem is from the keyExtractor. But i don’t know how to solve it. The Key Extractor from the code : Here is the
Batch write with Firebase Cloud Functions
I’m using Firebase as backend to my iOS app and can’t figure out how to construct a batch write through their Cloud Functions. I have two collections in my Firestore, drinks and customers. Each new drink and each new customer is assigned a userId property that corresponds to the uid of the currently logged in user. This userId is used
How do I update my NavBar once a user is logged-in (from ‘log in’ to ‘profile’) using React & Firebase?
I’m new to Reactjs & Firebase, but I’ve managed to set up a signup/login system- now once the user logs in, I have them redirected back to the home page, but I want the nav bar to display ‘profile’ instead of the original ‘log in’. I know this is something to do with Conditional Rendering but I’m having trouble implementing
Firestore Array of map not updating
So I’m working on a personal project to learn react-native and Firestore. I have a DB like this: And I want my code to add a new battery in the array batteries. The elements in the array are just a map{string, string} The problem is that when I update the array with a new brand that’s work but if I
All my requests to Firestore are classified as unverified because of AppCheck?
I enforced Firebase AppCheck for Firestore. Now, when I try to access data, I get an error: In Firebase, it says all my requests are unverified: This only happens for firestore. Is there something else I must do? I enabled AppCheck in my app using: I tried disabling AppCheck in the firebase console, and now all my requests are accepted.
How can I instantly load all my firebase entries without re-rendering?
Circumstances: For my app project that uses a realtime database I’m trying to load in data from all machines that are associated with the user. The machines that the user should see are dependent on the related company (cid) and which machines belong to that company. Problem: I have used the Firebase v9 docs as much as possible and have
Need help converting firebase 7.15.1 syntax into firebase 9.6.1 syntax
I am new to Firebase and I am following a tutorial that is a little bit outdated. I need help converting the code that they have into the newer version of it because I believe that the syntax has changed. They are using firebase 7.15.1 and I need the code to be in 9.6.1. Here is the 7.15.1 code: I