FormidableLabs / FormidableLabs/nuka-carousel
Not able to scroll to dynamically added slides
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 588
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
### Code Sandbox link
_No response_
### Bug report
```markdown
I am having issues when adding slides dynamically. I add slides in afterSlide if the user has scrolled to the last slide.
The new slides do get added to the carousel, but sliding/using ref.current.goForward() does not work.
My guess is that it has to do with totalPages not updating and so the carousel thinks there isn't a valid page to go to.
Could you advise if there is any way to make this work?
```
Contributor guide
Assessment
This issue has not been assessed yet.