How We Store User Prefs in Local Storage Using Hooks in Next.js
2023-12-15 06:4:39 Author: hackernoon.com(查看原文) 阅读量:9 收藏

Open TLDRtldt arrow

Read on Terminal Reader

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


@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!


文章来源: https://hackernoon.com/how-we-store-user-prefs-in-local-storage-using-hooks-in-nextjs?source=rss
如有侵权请联系:admin#unsafe.sh