Skip to content

Conversation

@breyman
Copy link

@breyman breyman commented Feb 15, 2023

While taking the course and working through the first ingredients activity, I got a bit confused a few times when the forward pagination button was still active when there were zero/just a single page's results.

Suggesting a simple guard clause (to keep code as similar as possible to pre-pull-request approach) to disable both pagination buttons when return results will be only a single page's worth.

Suggesting disabling all pagination buttons when return results will be at less than a page’s worth.
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

Successfully merging this pull request may close these issues.

1 participant