Skip to content

question: Future of the docSource mechanism — will it be removed? #9101

@congzhou09

Description

@congzhou09

Dear maintainer,

I've noticed that starting from version 0.21.0, the demo of this project (when launched via yarn dev) no longer restores the previously edited content after a page refresh. The same issue also appears on the official demo page.

I've also noticed the demo folder "packages/playground/apps/default" in version 0.19.5 has been removed in the newer versions.

To investigate, I attempted to reintroduce the IndexedDBDocSource in "packages/playground/apps/starter/utils/collection.ts", following the pattern used in "packages/playground/apps/default/utils/collection.ts" in version 0.19.5. The relevant code snippet is as follows:

  import {IndexedDBDocSource} from '@blocksuite/affine/sync';
  ... ...

  let docSources: DocCollectionOptions['docSources'] = {
    main: new IndexedDBDocSource(),
  };
  ... ...

However, this did not resolve the issue.

So, my question is: is the docSource mechanism being deprecated or planned for removal? Any clarification would be greatly appreciated. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions