gbowne1 / codebooker

This is a book recommendation app created with React 18.2 and MUI for coders/programmers looking for reccomendations to books on programming/coding to read
MIT License
31 stars 57 forks source link

Bug: Home Page Not Displaying Books from Database and Loading Spinner Issue. #193

Closed BlackBond06 closed 1 year ago

BlackBond06 commented 1 year ago

The current behavior of the home page is not in line with the expected functionality. Instead of rendering books fetched from the database, it continuously displays the loading spinner without presenting any books on the UI.

The reason for this current behavior is, at line 613 of the Library.jsx component, books fetched from the db are displayed if the db is not empty (there must be at least one book). Else, the loading spinner is displayed. There is currently no book in the db, which is why the loading spinner is continuously running.

To fix this issue, the following changes are recommended:

BlackBond06 commented 1 year ago

@gbowne1 This issue should be deleted from the issues tab. It has been closed.

gbowne1 commented 1 year ago

Ok @BlackBond06.

Closing this as completed.