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

Pagination #1149

Open
yukanagai opened this issue May 5, 2023 · 0 comments
Open

Pagination #1149

yukanagai opened this issue May 5, 2023 · 0 comments

Comments

@yukanagai
Copy link

yukanagai commented May 5, 2023

What is the recommended way to implement pagination with react-photoswipe-gallery?

I tried using the hook afterChange() to look for when the current index changes to a certain number -- then update the list of current images fed to PhotoSwipe component. However that causes the new set of images to change immediately and doesn't allow the last image in the original first page to display.

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