Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 72 forks source link

[BUG] Change loading state on page number change in /businesses #293

Closed Mhmdabed11 closed 4 years ago

Mhmdabed11 commented 4 years ago

In /businesses page, we need to change the loading state to ‘loading’ when we change the page number.

To Reproduce Steps to reproduce the behavior:

  1. Go to /businesses page
  2. Click on page number 2 at the bottom of the screen in pagination
  3. Skeleton loaders do not show up

Expected behavior When the page number changes, skeleton loaders should show until the data of the target page is fetched.

Actual Behavior The UI updates without any indication that data is being fetched and that it is in loading state.

Mhmdabed11 commented 4 years ago

I will fix this by today.