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
import { LifeCycleWatcher } from '@blocksuite/std';
// Auto Clear selection when switching doc mode.
export class AutoClearSelectionService extends LifeCycleWatcher {
static override readonly key = 'auto-clear-selection-service';
override unmounted() {
if (this.std.store.readonly) return;
this.std.selection.clear();
}
}