mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 10:05:02 +03:00
fix: remove asyncBlock cache
This commit is contained in:
parent
c7cd558c3b
commit
5959c08873
@ -1,6 +1,5 @@
|
|||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
import HotKeys from 'hotkeys-js';
|
import HotKeys from 'hotkeys-js';
|
||||||
import LRUCache from 'lru-cache';
|
|
||||||
|
|
||||||
import type { PatchNode } from '@toeverything/components/ui';
|
import type { PatchNode } from '@toeverything/components/ui';
|
||||||
import type {
|
import type {
|
||||||
@ -46,10 +45,7 @@ export interface EditorCtorProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Editor implements Virgo {
|
export class Editor implements Virgo {
|
||||||
private _cacheManager = new LRUCache<string, Promise<AsyncBlock | null>>({
|
private _cacheManager = new Map<string, Promise<AsyncBlock | null>>();
|
||||||
max: 8192,
|
|
||||||
ttl: 1000 * 60 * 30,
|
|
||||||
});
|
|
||||||
public mouseManager = new MouseManager(this);
|
public mouseManager = new MouseManager(this);
|
||||||
public selectionManager = new SelectionManager(this);
|
public selectionManager = new SelectionManager(this);
|
||||||
public keyboardManager = new KeyboardManager(this);
|
public keyboardManager = new KeyboardManager(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user