Comments (1)
Oh interesting, I hadn't noticed that this is now backwards: putting the param in the child gives it to both of them.
#[component]
pub fn App() -> impl IntoView {
provide_meta_context();
view! {
<Router>
<Routes fallback=|| ()>
<ParentRoute path=path!("/test") view=TestParent>
<Route path=path!(":test_id") view=TestChild/>
</ParentRoute>
</Routes>
</Router>
}
}
TestParent Params: ParamsMap([("test_id", "foo")])
TestChild Params: ParamsMap([("test_id", "foo")])
Will fix. Honestly though maybe just providing all the matched params to routes at every level makes the most sense. This has been raised a couple times and is reasonable enough.
from leptos.
Related Issues (20)
- 0.7-beta Resource isnt updated with source signal HOT 3
- LocalResource spawn_local called from outside of a task::LocalSet HOT 2
- `0.7-beta` Router `A` component missing `class` & `active_class` props HOT 5
- `0.7-beta` Deeply nested `ParentRoute` does not work with relative routing
- Suspend wrapped LocalResource panics
- True async - Fix or Educate HOT 2
- `0.7-beta` Missing `serde` when using `experimental-islands` and custom props HOT 1
- `0.7-beta` Panic when trying to render nested `island` HOT 4
- `0.7-beta` Nesting an island inside another island's body hydrates the inner island twice HOT 2
- Bump MSRV to 1.8, so we can drop lazy_static
- `0.7-beta` Panic when passing props to `island`
- `0.7-beta` Panic when using `LocalResource` in `island`
- `0.7-beta` Rendering `island` inside `<Suspense>` does not work
- .leptos_routes() server fn routing should respect excluded routes HOT 2
- Never resolve Futures synchronously to prevent class of errors HOT 2
- Nesting ErrorBoundary in Suspense panics on hydration HOT 1
- `0.7-beta` `ServerAction` panics when being dispatched in effect
- `0.7-beta` Panic when `ServerAction` value in `Effect` unmounts HOT 1
- Extracting body information from request does not work. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leptos.