Packages@robojs/sync
SyncBoxHandle<T>
Interface: SyncBoxHandle<T>
Imperative handle for SyncBox ref.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
| Property | Type | Description |
|---|---|---|
getState | () => undefined | T | Get current state |
getSyncStatus | () => SyncStatus | Get current sync status |
lock? | LockContext | Lock context (only available when lockable=true) |
setState | SyncBoxSetState<T> | Update state (partial or updater function) |
