createPowerSyncPlugin()
function createPowerSyncPlugin(powerSyncPluginOptions): {
install: (app) => void;
}
Create a Vue plugin to define the PowerSync client. Client will be provided app-wide (highest position in component hierarchy).
Needs to be installed on a Vue instance using app.use()
.
Parameters
Parameter | Type |
---|---|
powerSyncPluginOptions | object |
powerSyncPluginOptions.database | MaybeRef <AbstractPowerSyncDatabase > |
Returns
{
install: (app) => void;
}
Member | Type |
---|---|
install | (app ) => void |