Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js typescript doc data is possibly undefined

try using a ? after doc.data():
...doc.data()?.username
 
PREVIOUS NEXT
Tagged: #react #js #typescript #doc #data #possibly #undefined
ADD COMMENT
Topic
Name
6+7 =