-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Problem using dynamic data #41
Comments
@jonathandion Hi, |
@bd-arc Hey Benoit, Thanks sorry for the misunderstood. When I mean dynamic" I mean using data from my server using Ajax. When I use this is working I fetch my products inside We really need to have data ? |
@jonathandion I'll reproduce my answer to this issue :) My guess is that you're trying to render the carousel while it has no child at all. Am I right? Indeed, this would fail since the component depends on children's length. We need to improve component's state management in order to handle this kind of usage. For now, I would recommend you to render the carousel conditionally. Something along those lines:
Does this do the trick for you? |
@bd-arc thanks it's working 👍 |
Hi,
When I use dynamic data I have an error
undefined is not an object (evaluating 'this._positions[index].start')
but when I use static data everything seem to work.What I'm doing wrong ?
Thanks.
The text was updated successfully, but these errors were encountered: