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

Solid doesn't work with dynamic slides #6031

Closed
5 of 6 tasks
timothyallan opened this issue Sep 3, 2022 · 0 comments
Closed
5 of 6 tasks

Solid doesn't work with dynamic slides #6031

timothyallan opened this issue Sep 3, 2022 · 0 comments

Comments

@timothyallan
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-default-solid-forked-74lqi1?file=/src/App.jsx

Bug description

I've got Swiper working with Slides that are generated in place, but anytime the slides are generated from data/dynamically, they just don't get loaded. I've ported this instance from an existing React app, where it was working great.

I've even tried putting in all the observer flags, and calling all the various update functions after the data is populated:

        swiper.update();
        swiper.updateSlides();
        swiper.updateSize();

but it still won't show any slides.

Oddly enough, re-saving the file while in dev mode will show the slides, I'm assuming because hot reloading reloads everything, and now the slides are 'there', instead of delayed because of data loading etc.

Expected Behavior

Swiper slides should show up/refresh like the other framework counterparts.

Actual Behavior

Swiper stays blank and reports no slides.

Swiper version

8.3.2

Platform/Target and Browser Versions

all

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
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

1 participant