travischambers / libbyreads-rs

Find which libraries have books available from your goodreads want-to-read shelf. A rust port (and upgrade!) of the original libbyreads.
1 stars 0 forks source link

Add libraries as query params to the URL #2

Closed travischambers closed 1 week ago

travischambers commented 1 week ago

This way, a user can bookmark/reuse a URL and keep all their state, without re-selecting or re-entering information on subsequent visits.

travischambers commented 1 week ago

i think i need to move the SearchLibrary -> Library conversion out of get_libby_availability (also, it's probably a huge perf hit, if i'm hitting that over and over 🤦).

once that's moved out, i'll call it when a user clicks Add for their library. Then at the end of that method i'd add it to the url.

Similarly, if they click Remove, the method that's called will remove it from the URL.