How We Store User Prefs in Local Storage Using Hooks in Next.jsby@sssaini

How We Store User Prefs in Local Storage Using Hooks in Next.js

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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.

Company Mentioned

Mention Thumbnail
featured image - How We Store User Prefs in Local Storage Using Hooks in Next.js
Sukhpal Saini HackerNoon profile picture

@sssaini

Sukhpal Saini

Writes for saasbase.dev


Receive Stories from @sssaini

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!