You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
You might expect customThing to be passed down to /foo, since it appears to be the child component. But in fact, the child component is the default layout component, and we need to override it like so:
One way we could solve this is to remove any intermediate default layout components. In other words, child.component in the top-level layout component would be the routes/foo/index.html component. This would have the added benefit of simplifying Svelte's internal representation of the DOM.
The text was updated successfully, but these errors were encountered:
A minor annoyance with 0.15: if you're using a default layout component, it won't propagate data specified in custom layout components:
You might expect
customThing
to be passed down to/foo
, since it appears to be the child component. But in fact, the child component is the default layout component, and we need to override it like so:One way we could solve this is to remove any intermediate default layout components. In other words,
child.component
in the top-level layout component would be theroutes/foo/index.html
component. This would have the added benefit of simplifying Svelte's internal representation of the DOM.The text was updated successfully, but these errors were encountered: