TreeBranchEvents Interface
Events for TreeBranch.
This API is provided as an alpha preview and may change without notice.
To use, import via fluid-framework/alpha.
For more information about our API support guarantees, see here.
Sealed
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
/** @sealed */
export interface TreeBranchEvents
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| changed(data, getRevertible) | Alpha | void | Fired when a change is made to the branch. Includes data about the change that is made which listeners can use to filter on changes they care about (e.g. local vs. remote changes). |
Method Details
changed
Fired when a change is made to the branch. Includes data about the change that is made which listeners can use to filter on changes they care about (e.g. local vs. remote changes).
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
changed(data: ChangeMetadata, getRevertible?: RevertibleAlphaFactory): void;
Parameters
| Parameter | Modifiers | Type | Description |
|---|---|---|---|
| data | ChangeMetadata | information about the change | |
| getRevertible | optional | RevertibleAlphaFactory | a function that allows users to get a revertible for the change. If not provided, this change is not revertible. |