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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: if delete block, clear cache
alt068cadca5ca84
diff --git a/libs/components/editor-core/src/editor/editor.ts b/libs/components/editor-core/src/editor/editor.tsindex 2cd379bb26..e85db2ba65 100644--- a/libs/components/editor-core/src/editor/editor.ts+++ b/libs/components/editor-core/src/editor/editor.ts@@ -230,7 +230,12 @@ export class Editor implements Virgo {return await services.api.editorBlock.update(patches);},remove: async ({ workspace, id }: WorkspaceAndBlockId) => {- return await services.api.editorBlock.delete({ workspace, id });+ const ret = await services.api.editorBlock.delete({+ workspace,+ id,+ });+ this._cacheManager.delete(id);+ return ret;},observe: async ({ workspace, id }: WorkspaceAndBlockId,