[Bug?]: routeData() and useRouteData() not propagating data through file route path #1100
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
As documented (here)[https://start.solidjs.com/core-concepts/data-loading] and (here)[https://start.solidjs.com/api/useRouteData], as we move from stem to leaf down the route,
useRouteData()
should provide lower routes with access to data defined at higher routes. In addition (or as the mechanism for doing this?) the previousrouteData()
's data should be exposed via the{ data }
element ofRouteDataArgs
.Expected behavior 🤔
Lower routes do not have access to data from higher routes. In addition, inside a lower route's
routeData({data}: RouteDataArgs){ }
, the destructured value of{ data }
is undefined, suggesting that lower routes are indeed not able to access data from higher routes.Steps to reproduce 🕹
A minimal reproducible example is provided at this Github repository: https://github.com/chris31415926535/another-routedata-test.
Context 🔦
I'm loving solidstart but have hit a real wall here--any help would be appreciated.
If this isn't a bug, if you can point me in the right direction I'll gladly contribute a working example to the documentation.
Your environment 🌎
The text was updated successfully, but these errors were encountered: