Client API Reference
Complete API documentation for @gluonic/client and client-side packages.
Core
SyncClient- Create sync clientSyncProvider- React provider componentStoreOptions- Store configuration options
Adapters
Storage
StorageAdapter- Local storage interfaceDrizzleAdapter- Drizzle implementation (currently supported)
Planned:
RxDBAdapter- RxDB storage adapter (future release)
Server Communication
MutationAdapter- Mutation requests to serverBatchLoaderAdapter- Batch loading from serverDownsyncAdapter- Delta sync and bootstrapRealtimeAdapter- WebSocket real-time updates
Model System
Model- Base model class- Decorators -
@ClientModel,@Property,@ManyToOne,@OneToMany Reference- Eager reference classLazyReference- Lazy-loading referenceCollection- Eager collection classLazyCollection- Lazy-loading collection
Hooks
useModel- Get single modeluseCollectionModels- Get model collectionuseStore- Access store for mutationsuseConnectionState- Monitor sync statusobserver- MobX observer HOC (re-exported)
Core Types
Advanced
IdentityMap- Identity mapping and caching- Store Methods - Low-level store API
Last updated on