[database] misc todo note
This commit is contained in:
parent
a8aaee7274
commit
658821a631
|
@ -25,6 +25,8 @@ export default class Database extends ModuleBase {
|
||||||
|
|
||||||
// server time listener
|
// server time listener
|
||||||
// setTimeout used to avoid setPersistence race conditions
|
// 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(() => {
|
setTimeout(() => {
|
||||||
this._serverTimeOffset = 0;
|
this._serverTimeOffset = 0;
|
||||||
this._offsetRef = this.ref('.info/serverTimeOffset');
|
this._offsetRef = this.ref('.info/serverTimeOffset');
|
||||||
|
|
Loading…
Reference in New Issue