uchat | 有聊:基于兴趣分群的匿名聊天APP(react-native redux react-router) | Frontend Framework library
kandi X-RAY | uchat Summary
kandi X-RAY | uchat Summary
uchat
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uchat
uchat Key Features
uchat Examples and Code Snippets
Community Discussions
Trending Discussions on uchat
QUESTION
I am reading user profile from database, but the first time I read, it returns the right value (full attributes of a user object), but the second time it fires, it returns only 1 attribute (other attributes is null). this is my code
...ANSWER
Answered 2019-Nov-30 at 15:53The Firebase client always fires with the complete snapshot of the data at a location. So if you get this output:
DataSnapshot { key = kk44p2XW97OIxAudLwekOZwZM7B2, value = {lastSeen=-1} }
There is some code that writes to kk44p2XW97OIxAudLwekOZwZM7B2
with just a lastSeen
value. You might want to check your code for calls to setValue()
, as that would explain why the previous data under kk44p2XW97OIxAudLwekOZwZM7B2
disappeared in that second snapshot.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uchat
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page