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
When initial value isn't the lowerLimit, it works unexpected.
Maybe it works well for this code. When nextValue > upperLimit and if loop, it will return lowerLimit but not initial value.
nextValue > upperLimit
lowerLimit
// src/array/useNumber.ts //... if (upperLimit !== undefined) { if (nextValue > upperLimit) { if (loop) { return lowerLimit; } return upperLimit; } } return nextValue; }); }, [lowerLimit, loop, step, upperLimit], );
The text was updated successfully, but these errors were encountered:
Released in v2.3.2
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When initial value isn't the lowerLimit, it works unexpected.
Maybe it works well for this code. When
nextValue > upperLimit
and if loop, it will returnlowerLimit
but not initial value.The text was updated successfully, but these errors were encountered: