JonWash86 / book-bug-npm

0 stars 0 forks source link

Clean up routing and state management re: active book and search results #12

Closed JonWash86 closed 3 years ago

JonWash86 commented 3 years ago

Right now if you select a book and make it active, then return to the results view, clicking on the active book doesn't take you to the active book. This probably is as simple as unsetting the active book when the Back arrow is clicked.

JonWash86 commented 3 years ago

The active book is cleared when navigating back to search results, and the results/ route now executes a book search if there are no results.