I’m working on a project where I need to fetch data from Firebase and display it in a Data Table element. My goal is to query a Firestore collection on page load, store the retrieved data in an app state variable, and then bind this app state variable to the Data Table to display the data.
How to Set an App State Variable on Page Load via Firebase Query and Use it in a Data Table?
Database & APIs
However, when setting the variable, I am only able to select individual fields of the document (e.g., StepID
, StepTitle
, etc.), as shown in the attached screenshot. I want to map the entire document instead of selecting fields one by one.
Yes
1