Skip to content

Function: useReActiveDatabase()

ts
function useReActiveDatabase(): VueReActiveRecordInstance;

Injects and returns the Vue ReActiveRecord database instance from the current Vue application context.

Returns

VueReActiveRecordInstance

The injected VueReActiveRecordInstance.

Throws

If the database instance is not found in the current Vue context. Ensure the plugin is installed using app.use(install).

See

Vue inject Documentation