Cached slice data as an observable
OptionalunsubscribeUnsubscribe from changes, undefined if not subscribed
StaticidStaticnextCached slice data
Whether this slice has local IndexedDB/offline support enabled.
Offline-enabled slices can fall back to their local cache when either the browser loses network connectivity or the Datalynk client enters an unavailable recovery state after a returned server/API failure.
Get slice information
Optionalreload: booleanIgnore cache & reload info
Synchronize the local slice cache with the server and subscribe to socket changes.
For an offline-enabled slice, synchronization failures caused by network or API unavailability are contained in the background rather than becoming unhandled promise rejections. Local cached data remains usable while the Api recovery loop determines when the failed API path works again. When the client becomes online again, pending local changes are scheduled for upload without overlapping push operations.
Calling sync(false) unsubscribes from slice socket events.
Enable or disable synchronization/socket events.
The observable local cache when synchronization is enabled.
An object to aid in constructing Datalynk requests