#URL, ReactContext, Server for Dashboard?

9 messages · Page 1 of 1 (latest)

fading dune
#

Hi, I am building a dashboard for different projects with a projectSwitcher (I am just using Shadcn's sidebar07), and I was just wondering how should i track the selected project to render the right dashboard? should i store the ID in the URL? should i store it as a react Context + local storage? or add an entry in the database?

prisma girderBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

nimble jacinth
#

@fading dune well I would suggest to store the id in the url.

#

you can also just use a state/context but I don't see any cons of using id in the url

nimble jacinth
#

@fading dune any opinion?

fading dune
prisma girderBOT
nimble jacinth
#

what do you mean by query param vs search query? I think they are the same.
or did you mean dynamic path slug?