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
Description:
Objective: Improve the counter slice by adding validation, handling edge cases, and enhancing readability.
Details:
Input Validation for incrementByAmount:
incrementByAmount
action.payload
Edge Case Handling:
0
value
decrement
1000
Code Readability:
parseInt
Acceptance Criteria:
Additional Notes:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
Objective: Improve the counter slice by adding validation, handling edge cases, and enhancing readability.
Details:
Input Validation for
incrementByAmount
:incrementByAmount
action only increments if theaction.payload
is a valid number.Edge Case Handling:
0
) to prevent thevalue
from going below zero when thedecrement
action is dispatched.1000
) to prevent thevalue
from exceeding a specified threshold.Code Readability:
incrementByAmount
to useparseInt
or a similar function to safely parse numeric values.Acceptance Criteria:
incrementByAmount
function only increments with valid numbers.Additional Notes:
The text was updated successfully, but these errors were encountered: