How to run something just once after fetching Firestore collection?

前端 未结 0 927
悲&欢浪女
悲&欢浪女 2020-11-21 11:32

I have the following query:

firestore()
  .collection(\'users\')
  .doc(userId)
  .onSnapshot(doc => setUser(doc.data()))
  .once(() => {
    // Do some         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题