Hi there, folks! I’m having a very frustrating bug, my custom-coded component renders correctly only when I’m in dev mode. I tried to add a watcher to control the tasks list, did a forEach that goes through tasks and invokes instance.addTask for every task but still got this annoying bug.
Can you try with static data and no watch, to see if the problem is the refreshing or the component itself?
There is normally no difference between the dev mode and the editor mode, except we prebuild the component (normally most difference come from editor vs published app).
There is no build error for your component when you import it?
Can you also link to your github test repo if possible (by pm if you want)?
Also, i am not sure as i did not find anything about it on their doc, but storing third party instance inside something reactive is normally a bad idea (if not done to work with vue).
(this.ganttInstance)
This is because Vue proxy object for reactivity, which can break internal logic.
I tried both locally and in production with the simple version, and everything worked great.
I tested both with static data and binding.
I think you must check your data.
If you bind to a collection, you need a wrapper on the component to always have the data (collection are object with data and metadata). Using this method allow you to handle both normal array or collection. Exemple here on the kanban code
When i took a look at the expected data, I see that it requires Date object, not Date string (to be double check). This is maybe your problem? (when fetching you probably receive string, and not Date object). Try with a simple binding (js) returning the example data of the doc.
Here is my code for reference (you will to add the wrapper i mention above to handle collection)
Thank you for your response. I tried to do as you said, but I guess some project dependencies or something impacted production mode for me. Can we have a call to discuss possible solutions & check it together?