STOP using useState - URL Search Params
5.2 هزار بار بازدید -
9 ماه پیش
-
Stop using useState. Too many
Stop using useState. Too many sites rely on this or state managers without thinking about the user navigation experience. Lets learn how we can use URL Search Params to handle state instead, with support for server side and client side components. This way we can persist state elements between user when they send links, or refresh the page.
NextJS Docs: https://nextjs.org/docs/app/api-reference/functions/use-search-params
NextJS SearchParams Tutorial: https://nextjs.org/learn/dashboard-app/adding-search-and-pagination
Theo Tanstack Router: https://www.seevid.ir/fa/w/DrP8gIpwkUg
NPM - next-usequerystate: https://www.npmjs.com/package/next-usequerystate
NPM - next-use-query-params: https://www.npmjs.com/package/next-query-params
-----
🐦 Twitter (X): https://twitter.com/JollyShopland
🤓 Personal Site: https://jamesshopland.com/
💻 GitHub: https://github.com/jolbol1
JollyUI: https://jollycod.ing/ui
Where I Work: https://jollycod.ing/work
9 ماه پیش
در تاریخ 1402/10/15 منتشر شده
است.
5,247
بـار بازدید شده