Should I build a local data layer/app state to maintain state in a React Native/Firestore App?

前端 未结 2 444
遇见更好的自我
遇见更好的自我 2021-01-21 21:03

A main selling point of Firestore is the ability to use it as a online/offline source of truth. I\'m using it in this way right now: updating the Firestore document directly on

2条回答
  •  梦谈多话
    2021-01-21 21:21

    I updated the answer with specific learnings, but after a lot of testing, my biggest general learnings so far are

    • Latency compensation can be very inconsistent even with the same data and environment. Listeners can take time to "warm up", as is mentioned in other questions. It is hard to have a standard metric here.
    • Document size DOES impact latency compensation. Everything else so far is inconclusive.

提交回复
热议问题