Skip to content

@nhtio/vue-re-active-record

Composables

FunctionDescription
awaitPluginInitWaits for the Vue ReActiveRecord plugin to finish initializing the real database in a browser context.
initializeReActiveDatabaseInitializes the Vue ReActiveRecord plugin with the provided configuration and waits for the real database to be ready.
onReActiveDatabaseReadyRegisters a callback to be invoked after the Vue ReActiveRecord database is ready in the current Vue component lifecycle.
useReActiveDatabaseInjects and returns the Vue ReActiveRecord database instance from the current Vue application context.
useReActiveModelInjects and returns a specific model constructor from the Vue ReActiveRecord database.

Constants

VariableDescription
versionThe current version of the package.

Core

VariableDescription
defaultThe singleton instance of the VueReActiveRecordPlugin used as the default export.

Other

FunctionDescription
isSSRStubDetermines if a given value is an SSR stub implementation.
isWebContextDetermines if the current execution context is a web-like environment.

Types

NameDescription
VueReActiveDatabaseOptionsThe configuration options type for the Vue ReActiveRecord database instance.
VueReActivePluginOptionsOptions for configuring the Vue ReActiveRecord plugin installation.
VueReactiveQueryCollectionRepresents a reactive query collection result for a specific model in Vue ReActiveRecord.
VueReactiveQueryResultRepresents a reactive query result for a single model instance in Vue ReActiveRecord.
VueReActiveRecordInstanceThe shape of the Vue ReActiveRecord Database instance. For more information, see the ReactiveDatabase class documentation.
VueReActiveRecordPluginCore plugin class that manages the Vue ReActiveRecord integration and database lifecycle.
VueReActiveRecordTypesAn augmentable interface for the Vue ReActiveRecord types.
InferredVueReActiveObjectMapA utility type that intelligently infers the model object map for your Vue ReActiveRecord application.