Skip to content

Load plugin from component/App.vue #30

Open
@sebastian-raubach

Description

Clear and concise description of the problem

When my application starts up, I request a configuration file from the server which includes the Plausible configuration. Only after I've received that can I actually call createPlausible with the correct parameters. However, to use v-plausible, I need to load it via app.use(createPlausible({})) in the main.js file which is executed before I even load the configuration. Within my App.vue, from what I understand, I can no longer load the plugin, because I no longer have access to app.

Is there a way to set/change the plausible configuration within v-plausible after the plugin has been loaded?

Suggested solution

Provide a way to update the configuration of plausible after plugin load.

Alternative

No response

Additional context

No response

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions