2
0
mirror of synced 2025-01-23 12:50:05 +00:00

[database] misc todo note

This commit is contained in:
Salakar 2017-10-05 12:53:47 +01:00
parent a8aaee7274
commit 658821a631

View File

@ -25,6 +25,8 @@ export default class Database extends ModuleBase {
// server time listener
// setTimeout used to avoid setPersistence race conditions
// todo move this and persistence to native side, create a db configure() method natively perhaps?
// todo and then native can call setPersistence and then emit offset events
setTimeout(() => {
this._serverTimeOffset = 0;
this._offsetRef = this.ref('.info/serverTimeOffset');