neuronetio / gantt-elastic

Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]

Home Page:https://neuronet.io/gantt-elastic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[vuex] duplicate getter key: GanttElastic/options

taowu-kooboo opened this issue · comments

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

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.

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

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.

ok, maybe till monday I will publish something

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