How We Store User Prefs in Local Storage Using Hooks in Next.js
Too Long; Didn't Read
Our users wanted to store app preferences so that every time they use engyne.ai, they can start with the same settings applied.
In our case, it was these 3 settings: Author, Publish Status, and Sorting Order. Ideally, once you select these, they should be selected permanently, even if you navigate away or log out.