Skip to main content

@docstack/react

Interfaces​

InterfaceDescription
ClassModelDocument-modelling types, re-exported from @docstack/client.
DocStackSyncOptionsOptions for DocStack.sync, which starts one handle per stack.
DomainModelDocument-modelling types, re-exported from @docstack/client.
InternalDocFilterOptionsOptions controlling which of DocStack's own documents stay on this device.
PatchDocument-modelling types, re-exported from @docstack/client.
StackSyncOptionsOptions for ClientStack.sync.
SyncStatusA point-in-time reading of one stack's replication.
TriggerModelDocument-modelling types, re-exported from @docstack/client.

Type Aliases​

Type AliasDescription
AttributeModelDocument-modelling types, re-exported from @docstack/client.
AttributeTypeDocument-modelling types, re-exported from @docstack/client.
AttributeTypeConfigDocument-modelling types, re-exported from @docstack/client.
ClientCredentialsDocument-modelling types, re-exported from @docstack/client.
DocstackReadyDocument-modelling types, re-exported from @docstack/client.
DocumentDocument-modelling types, re-exported from @docstack/client.
RelationDocumentDocument-modelling types, re-exported from @docstack/client.
RemoteResolverHow a stack finds its remote.
SelectASTDocument-modelling types, re-exported from @docstack/client.
StackConfigDocument-modelling types, re-exported from @docstack/client.
StackOptionsDocument-modelling types, re-exported from @docstack/client.
SyncDirectionWhich way documents move.
SyncStateWhere a stack's replication currently stands.
UnionASTDocument-modelling types, re-exported from @docstack/client.

Variables​

VariableDescription
DocStackContextContext object for the DocStack instance. It provides the current DocStack instance or null if not initialized.

Functions​

FunctionDescription
StackProviderA provider component that initializes the DocStack client and makes it available to child components via the useDocStack hook.
useClassHook to retrieve a single Class instance by name.
useClassCreateHook to create a new Class in a specific stack.
useClassDocsHook to retrieve documents (cards) of a specific class. Maintains a real-time list of documents matching the query.
useClassListHook to retrieve a list of classes from a stack based on a selector. Maintains a real-time list of classes matching the selector.
useDocStackHook to access the DocStack instance.
useDomainHook to retrieve a single Domain instance by name.
useDomainCreateHook to create a new Domain in a specific stack.
useDomainListHook to retrieve a list of domains from a stack based on a selector. Maintains a real-time list of domains matching the selector.
useDomainRelationsHook to retrieve relation documents for a specific domain. Maintains a real-time list of relations matching the query.
useFindHook to find documents in a stack using a Mango selector.
useQuerySQL-
useSyncStatusSubscribes to replication state for one stack, or for all of them.