john-smilga / react-projects

4.85k stars 3.88k forks source link

Fixed: After empty search no api call #18

Closed Ankit2906 closed 3 years ago

Ankit2906 commented 3 years ago

There is no valid pageNo as 0 . So changed to 1, And after searching in search bar and emptying the search and pressing enter, api was not getting called. Hence fixed that.

john-smilga commented 3 years ago

Even if we set page=0 API still sends back the data. I explain my reasons in the video (available as part of the course).