fix(workspace): should avoid sending providers' update back (#3384)

This commit is contained in:
liuyi
2023-07-26 17:47:24 +08:00
committed by GitHub
parent 2c249781a2
commit 6bafa83cef
4 changed files with 33 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ export const createSQLiteProvider: DocProviderCreator = (
passive: true,
connect: () => {
datasource = createDatasource(id);
provider = createLazyProvider(rootDoc, datasource);
provider = createLazyProvider(rootDoc, datasource, { origin: 'sqlite' });
provider.connect();
connected = true;
},