Disable the first query snapshot when adding a snapshotListener

后端 未结 2 1694
梦谈多话
梦谈多话 2021-01-16 21:32

Firestore realtime updates documentation here

Here is the comment you can find in the documentation.

Important: The first query snapshot cont

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 22:05

    There is no way to suppress getting the initial data.

    Depending on the use-case, you may want to attach your listener to a subset of the data. E.g. if you have an append-only scenario (such as chat), you can start listening for data that was modified after "now".

提交回复
热议问题