#nuqs

JimmyLvjimmylv
2025-12-29

✅ Summary: State Pyramid

Don't just use one tool. Layer your state:
- **Async Data**: React Query (Server State)
- **Global UI**: Zustand (Client State)
- **Shareable**: nuqs (URL State)
- **Local**: useState (Component State)

Next stop: **4.4 i18n**.
If you want to earn global revenue, you need i18n. 🚀

JimmyLvjimmylv
2025-12-29

✅ 总结:状态分层金字塔

不要一把梭,要分层治理:
- **Async Data**: React Query/tRPC (Server State)
- **Global UI**: Zustand (Client State)
- **Shareable**: nuqs (URL State)
- **Local**: useState (Component State)

下一站:**4.4 国际化 (i18n)**。
如果你想赚全世界的钱,你得支持 i18n。🚀

Hand‑drawn layered pyramid labeled DB Truth, Server Cache, Global Client, and URL/Local with arrows and doodles illustrating state hierarchy.
2025-09-23

Musste zuletzt öfters mal mit URL Search Parametern in React arbeiten und hatte das von Hand geschrieben. Stellt sich raus, muss man nicht. nuqs sieht ganz gut aus und tut bei mir gerade was es soll. nuqs.dev #nuqs #react

Tadashi Shigeokacodenote
2025-08-22

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst