Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Adding keys in store/index will overwrite default store #5

Open
NickBolles opened this issue Nov 14, 2018 · 0 comments
Open

Adding keys in store/index will overwrite default store #5

NickBolles opened this issue Nov 14, 2018 · 0 comments

Comments

@NickBolles
Copy link

When using the example located here:
https://github.com/gustojs/nuxt-feathers-vuex#vuex-store

the actions: {} key will overwrite the defaults store actions key, which has nuxtServerInit on it, which in turn initialized the authentication. I just spent a few hours debugging this and finally figured out the issue.

At the very least this should be called out in the documentation, but I think a better solution is to use a deep merge in createStore instead of Object.assign.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant