-
|
Is using Ideally it would be possible to get the context in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Could you provide example code? Where is the context provided, relative to where it's used? |
Beta Was this translation helpful? Give feedback.
It is working as designed in your reproduction, unless I'm misreading it; providing context in the
viewof a parentLazyRouteand consuming it in thedataof the childLazyRouteis not intended to work. Supporting that would preventing loading thedatafor all routes concurrently, which is the point of splitting things intodataandviewfunctions in the first place.Currently, the example loads
ViewDdata,ViewEdata,ViewDlazy view, andViewElazy view concurrently, then renders the page once all have loaded.Allowing
ViewEdata to read from context provided inViewDview would create a waterfall:ViewDdata,ViewDlazy view, andViewElazy view concurrentlyViewDdata a…