Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(nbstore): close full blob sync for iOS (#10286)

EYHN5b768d909166
diff --git a/packages/common/nbstore/src/sync/blob/index.ts b/packages/common/nbstore/src/sync/blob/index.ts
index f7964f3a1d..020b98f19c 100644
--- a/packages/common/nbstore/src/sync/blob/index.ts
+++ b/packages/common/nbstore/src/sync/blob/index.ts
@@ -145,12 +145,15 @@ export class BlobSyncImpl implements BlobSync {
const abort = new AbortController();
this.abort = abort;
- this.fullSync(abort.signal).catch(error => {
- if (error === MANUALLY_STOP) {
- return;
- }
- console.error('sync blob error', error);
- });
+ // TODO(@eyhn): fix this, large blob may cause iOS to crash?
+ if (!BUILD_CONFIG.isIOS) {
+ this.fullSync(abort.signal).catch(error => {
+ if (error === MANUALLY_STOP) {
+ return;
+ }
+ console.error('sync blob error', error);
+ });
+ }
}
stop() {