paint-brush
How We Store User Prefs in Local Storage Using Hooks in Next.jsby@sssaini
278 reads

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

by Sukhpal SainiDecember 14th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.
featured image - How We Store User Prefs in Local Storage Using Hooks in Next.js
Sukhpal Saini HackerNoon profile picture
Sukhpal Saini

Sukhpal Saini

@sssaini

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

About Author

Sukhpal Saini HackerNoon profile picture
Sukhpal Saini@sssaini

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite