You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project: rmtdev Video Number: 158 Video Title: Finish Pagination (Derived State)
ISSUE: In the video, we're calculating the total pages without using Math.ceil().
FIX:
Math.ceil is important here because we want to round up to the nearest whole number. For example, if we have 15 jobs and we want to display 7 jobs per page, we need 3 pages.
15/7=2.14// Simple division will set total pages to 2, which will lead to missing the last jobMath.ceil(2.14)=3// We need 3 pages to show all 15 jobs
The text was updated successfully, but these errors were encountered:
Project: rmtdev
Video Number: 158
Video Title: Finish Pagination (Derived State)
ISSUE: In the video, we're calculating the total pages without using
Math.ceil()
.FIX:
Math.ceil is important here because we want to round up to the nearest whole number. For example, if we have 15 jobs and we want to display 7 jobs per page, we need 3 pages.
The text was updated successfully, but these errors were encountered: