[database] misc todo note

This commit is contained in:
Salakar 2017-10-05 12:53:47 +01:00
parent a8aaee7274
commit 658821a631
1 changed files with 2 additions and 0 deletions

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');