blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

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

Open congzhou09 opened this issue 1 year ago • 0 comments

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!

congzhou09 avatar Apr 23 '25 09:04 congzhou09