remove(key: string, scope: StorageScope, external = false): void {
// Update our datastructures but send events only after
this.withPausedEmitters(() => {
// Update key-target map
this.updateKeyTarget(key, scope, undefined);
// Remove actual key
this.getStorage(scope)?.delete(key, external);
});
}
private withPausedEmitters(fn: Function): void {