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

items are added but not visible on timeline #57

Open
bachy opened this issue Mar 5, 2020 · 5 comments
Open

items are added but not visible on timeline #57

bachy opened this issue Mar 5, 2020 · 5 comments

Comments

@bachy
Copy link

bachy commented Mar 5, 2020

Hi,
i can't get timeline to display items
i can found them in the timeline object with console but there are not displayed at all
i'm searching for this for hours, but i cant get it work
here is my code https://esadhar.net/gogs/bachir/offline-timeline/src/vue2vis/src/App.vue
thanks

@bachy
Copy link
Author

bachy commented Mar 6, 2020

same code is working perfectly without vue2vis
https://esadhar.net/gogs/bachir/offline-timeline/src/master/src/App.vue

@polosson
Copy link

Hi!
I'm facing the same problem here, after having updated to version 0.0.18. Here is a screenshot of the Vue devTools on the component, showing that items are in component' state, but nothing is displayed on timeline (no element in resulting DOM):

Screenshot_20200331_125840

But I can't figure out why this is happening... Any thought?
Thanks!

@alexcode
Copy link
Owner

I'd be happy to help out but I'd need to repro the issue. Here is a working fiddle, just repro your problem from that.

@polosson
Copy link

Hi @alexcode!

I've just edited the fiddle: https://jsfiddle.net/2gp9dokz/2/

It seems that the bug occurs when we differ the fetch of items. If you un-comment the settimeout on lines 15 and 17, the items are not rendered. In my case, the delay is due to a real distant API fetching, using Axios.

Thanks for your time!

@jansim
Copy link

jansim commented Apr 20, 2020

I'm having the same issue as @polosson, but until there is a fix I was able to work around it by delaying the initialization of the Timeline until my data is fetched via v-if.

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

No branches or pull requests

4 participants