Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefixing v-e-f actions #327

Open
dsl101 opened this issue May 6, 2020 · 1 comment
Open

Prefixing v-e-f actions #327

dsl101 opened this issue May 6, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@dsl101
Copy link
Contributor

dsl101 commented May 6, 2020

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.

@dsl101
Copy link
Contributor Author

dsl101 commented May 6, 2020

I did the easy bit, and put some warning code in here #328

@louisameline louisameline added the enhancement New feature or request label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants