Real Time Reads in Firestore and storing real time data #6809
Unanswered
AntonioLi1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I am using Firestore and trying to use real time data reads for my messages component of my app.
This is my current code. setMessages is a state function in which i use to render my messages with a flatlist. The console.log(obj) logs me the correct info in real time, but I can't seem to store it into state in real time. What should I fix for this to work?
`useEffect(() => {
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions