Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

[vuex] duplicate getter key: GanttElastic/options #39

Closed
taowu-kooboo opened this issue Mar 27, 2019 · 5 comments
Closed

[vuex] duplicate getter key: GanttElastic/options #39

taowu-kooboo opened this issue Mar 27, 2019 · 5 comments
Labels
🐛 bug Something isn't working

Comments

@taowu-kooboo
Copy link

taowu-kooboo commented Mar 27, 2019

Describe the bug
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to the gantt chart page
  2. Switch to a new page
  3. Go back to the gantt chart page
  4. See error

Expected behavior
This is a bug or could you please help me to resolve this error, thank you. I use vue-cli3

@neuronetio
Copy link
Owner

Yeah this is a bug, because gantt-elastic is trying to register vuex module that is already registered when create cycle hook i fired.
From the next version I removed vuex entirely because it is pain in the ass to work with it on arrays with structure like gantt-elastic have, so the problem will be resolved.

@neuronetio neuronetio added the 🐛 bug Something isn't working label Mar 28, 2019
@neuronetio
Copy link
Owner

For quick workaround you can add this.$store.unregisterModule('GanttElastic') to beforeDestroy life cycle hook.

@taowu-kooboo
Copy link
Author

I have add this.$store.unregisterModule('GanttElastic') to beforeDestroy life cycle hook, when i switch to a new page or go back to the gantt cahrt page, it throws new errors.
image
Looking forward to your next version, thank you for your answer.

@neuronetio
Copy link
Owner

ok, maybe till monday I will publish something

@neuronetio
Copy link
Owner

Try 0.12.1 but first take a look at https://github.com/neuronetio/vue-gantt-elastic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants