We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently useStateList returns
{ state: stateSet[currentIndex], next: next, prev: prev, };
it would be great if you also return the currentIndex which will be used as a page indicator.
{ state: stateSet[currentIndex], next: next, prev: prev, index: currentIndex };
also if you can add a setCurrentIndex that would be awesome.
The text was updated successfully, but these errors were encountered:
feat(useStateList): implemented currentIndex, setState, `setState…
currentIndex
setState
43cb6aa
…At` methods as requested in #634; Reworked a bit implementation of `next` and `prev` to make it reuse the `setStateAt` method;
setStateAt
chore(release): 13.4.0 [skip ci]
c8d3251
# [13.4.0](v13.3.0...v13.4.0) (2019-11-08) ### Features * **useStateList:** implemented `currentIndex`, `setState`, `setStateAt` methods as requested in [#634](#634); ([43cb6aa](43cb6aa))
No branches or pull requests
currently useStateList returns
it would be great if you also return the currentIndex which will be used as a page indicator.
also if you can add a setCurrentIndex that would be awesome.
The text was updated successfully, but these errors were encountered: