Open coding-st opened 3 years ago
Hi @coding-st !
Thank you for your participation.
I'll be reviewing that bug and I'll try to push out a fix for it asap :)
@SimCoderYoutube thanks for your fast reaction. Your tutorials are awesome! Looking forward to hear from you.
Has any found a fix to this?
A potential solution is to use this:
const uid = snapshot.docs[0].ref.path.split('/')[1];
and put that line^ and the rest of the code in that function in a try catch block. The line above will throw an error if there is no documents (posts), so for users where this throws an error, just catch, and do nothing since its pointless to get the posts of a user with no posts.
I think you should console.log(snapshot) for yourself and try to find the segments data based on the console.log, the snapshot data might be different because firebase might update their way to display the snapshot. For my part i was able to retrieve the data from snapshot..query.C.path.segments[1];
I encountered this error while following the video. What does the EP
mean? I had google around for documentation, and could not find any reference to this
Hi,
I'm getting the following error when opening the Feed Screen:
Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating 'snapshot.query.EP.path')
The Feed also won't render because of that. The code line which produces the error is in the action index.js the const ui:
Can anybody support?