File tree Expand file tree Collapse file tree 3 files changed +212
-112
lines changed Expand file tree Collapse file tree 3 files changed +212
-112
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ import {
21
21
SharedClientState ,
22
22
WebStorageSharedClientState
23
23
} from '../local/shared_client_state' ;
24
- import { LocalStore , MultiTabLocalStore } from '../local/local_store' ;
24
+ import {
25
+ LocalStore ,
26
+ MultiTabLocalStore ,
27
+ newLocalStore ,
28
+ newMultiTabLocalStore
29
+ } from '../local/local_store' ;
25
30
import { MultiTabSyncEngine , SyncEngine } from './sync_engine' ;
26
31
import { RemoteStore } from '../remote/remote_store' ;
27
32
import { EventManager } from './event_manager' ;
@@ -126,7 +131,7 @@ export class MemoryComponentProvider implements ComponentProvider {
126
131
}
127
132
128
133
createLocalStore ( cfg : ComponentConfiguration ) : LocalStore {
129
- return new LocalStore (
134
+ return newLocalStore (
130
135
this . persistence ,
131
136
new IndexFreeQueryEngine ( ) ,
132
137
cfg . initialUser
@@ -212,7 +217,7 @@ export class IndexedDbComponentProvider extends MemoryComponentProvider {
212
217
}
213
218
214
219
createLocalStore ( cfg : ComponentConfiguration ) : LocalStore {
215
- return new MultiTabLocalStore (
220
+ return newMultiTabLocalStore (
216
221
this . persistence ,
217
222
new IndexFreeQueryEngine ( ) ,
218
223
cfg . initialUser
You can’t perform that action at this time.
0 commit comments