Skip to content

Prefixing v-e-f actions #327

@dsl101

Description

@dsl101

I have an app that I'm slowly porting over to use v-e-f and firestore, and have just been stuck for an hour trying to work out why my clearUser action wasn't being executed. I eventually found the answer here :) I couldn't see any reference to this in the documentation via the search at the top of the page, nor did there seem to be a full API list of all actions / mutations.

In any case, it would be great if there was a prefix for all the v-e-f actions so that I could keep my app using clearUser. Perhaps this could be done at initialisation like this:

const easyFirestore = VuexEasyFirestore(
  [myModule],
  {
    prefix: 'vef_',          // ← Allow all actions / mutations to be prefixed
    logging: true,
    FirebaseDependency: Firebase
  }
)

and then dispatch actions with dispatch('vef_openDBChannel') and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions