-
I am using dioxus_router for routing. I have a situation where I want to pass a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can provide the signal through the context API in your layout and consume it in the routes: https://dioxuslabs.com/learn/0.5/reference/context |
Beta Was this translation helpful? Give feedback.
-
Yes, I thought so. But I hoped for a more succinct way of doing it. I try to avoid the context API because it makes the code harder to read IMHO. Thanks for the quick answer! |
Beta Was this translation helpful? Give feedback.
You can provide the signal through the context API in your layout and consume it in the routes: https://dioxuslabs.com/learn/0.5/reference/context