-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add currentPage as Prop? #3
Comments
I didn't find such a way, but I think that would be useful, right now re-render resets currentPage to 0. Also some way of accessing currentPage would be nice. |
Maybe an easy first step would just be allowing to set "page" as a property, and keeping that page as state in some higher-order component? Or @kylevalenzuela would you prefer also handlers for triggering next/previous pages too? |
Is it possible to retrieve current page somehow? I need to trigger an analytics event when the page changes. |
Is there any way to set currentPage as a prop? Since this is a functional component, you can't use refs.
Thanks.
The text was updated successfully, but these errors were encountered: