Replies: 1 comment 1 reply
-
If there's a console log for every item it looks like Firebase is working correctly, and you probably have a problem with your React code. Do you possibly have a scoping problem by naming the project array and callback param the same thing ( If you console.log |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everyone,
First off I really love the new SDK, it's really easy to use and implement, with fewer lines of code. But I am having some issues in reading documents using React.js.
I have a collection called projects and I want to retrieve them. When I write the code and do a console.log(), it prints all the data. But when I render it, I get only 1 document. Not sure if I am doing it the right way. I am attaching my code and a screenshot of the output below. This project had the regular firebase SDK, but then I imported the new modular SDK. Not sure if that is causing the issue.
Code:
Output:

Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions