mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
docs(editor): add doc for reactive types in store (#10958)
This commit is contained in:
@@ -23,6 +23,13 @@ You can also use rxjs operators to handle the events.
|
||||
|
||||
> **blockUpdated**: `Subject`\<`StoreBlockUpdatedPayloads`\>
|
||||
|
||||
This fires when a block is updated via API call or has just been updated from existing ydoc.
|
||||
|
||||
The payload can have three types:
|
||||
- add: When a new block is added
|
||||
- delete: When a block is removed
|
||||
- update: When a block's properties are modified
|
||||
|
||||
***
|
||||
|
||||
### historyUpdated
|
||||
|
||||
Reference in New Issue
Block a user