mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-12 14:40:22 +08:00
feat(editor): replace slot with rxjs subject (#10768)
This commit is contained in:
@@ -214,7 +214,7 @@ export class PageRootBlockComponent extends BlockComponent<
|
||||
(entries: ResizeObserverEntry[]) => {
|
||||
for (const { target } of entries) {
|
||||
if (target === viewportElement) {
|
||||
viewportService.emit(viewport);
|
||||
viewportService.next(viewport);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -416,7 +416,7 @@ export class PageRootBlockComponent extends BlockComponent<
|
||||
);
|
||||
noteModels.forEach(note => {
|
||||
this.disposables.add(
|
||||
note.propsUpdated.on(({ key }) => {
|
||||
note.propsUpdated.subscribe(({ key }) => {
|
||||
if (key === 'displayMode') {
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user