vpatch.h Header
Types
| struct | Patch | Patches are applied by reconcilers to update live widgets instead of rebuilding the whole tree every render. |
Enums
| enum class | PatchOp | Type of patch operation. |
Enum Documentation
enum class PatchOp
Type of patch operation.
A reconciler needs to know what kind of patch it's working with in order to properly apply the patch's data.
The descriptions below reference the operation's sibling fields from the
Patchstruct.
| Constant | Description |
|---|---|
Insert |
Create node (a full subtree) under parentPath at index |
Remove |
Destroy the widget at path |
Update |
Re-apply node's properties to the existing widget at path |
Replace |
The primitive at path changed: remove + insert node |
EditorValue |
Set the value of the Editor at path |