AyronK / arpg-timeline

Stay ahead in your favorite ARPGs with the season tracker. Never miss a season start or end again!
https://ayronk.github.io/arpg-timeline/
MIT License
6 stars 2 forks source link

Use local storage to keep user filter choices #76

Open AyronK opened 2 months ago

AyronK commented 2 months ago

Is your feature request related to a problem? Please describe. We could store user filter choices in local storage.

Describe the solution you'd like We could store user filter choices in local storage. Whenever user enter a page without any query parameters in the url we could get the saved configuration from local storage. If user enters a page using a url with query parameters it should have a higher priority. Save in local storage should be delayed until user interacts with filters.

Describe alternatives you've considered The only alternative that stays in the browser and does not require user consent would be indexdb. We cannot use anything else because I would like to keep the website cookie and session free.

Additional context n/a