#How to pass props to a dynamic route?

18 messages · Page 1 of 1 (latest)

strong ridge
#

So in my app I'm redirecting my user to a dynamically generated route but I want to give the route some props in order to display what I need on the dynamic page

rustic cliffBOT
#

🔎 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)

granite radish
#

if your "props" are static, you can define them in your dynamic component. Else: where does the "dynamic" data that you want to share as props comes from? From a database/cms/... then fetch it @strong ridge

strong ridge
granite radish
#

so your data is dynamic and you don't have any connection to get the data, that you want to get. Have I understood that right?

strong ridge
#

all i have is the dynamic segment

granite radish
strong ridge
#

i could probably change the name of the dynamic segment but i wanted to see if there was a way for me to pass props down

granite radish
granite radish
#

@strong ridge solved?

#
if (solved) {
   await markAsSolution();
} else {
   throw new Error("What's missing to solve your question?")?
}
#

@strong ridge Error while closing thread: What's missing to solve your question?

granite radish
#

@strong ridge ?

strong ridge
granite radish
rustic cliffBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1191765058208940111 message)