Skip to content
Discussion options

You must be logged in to vote

It is working as designed in your reproduction, unless I'm misreading it; providing context in the view of a parent LazyRoute and consuming it in the data of the child LazyRoute is not intended to work. Supporting that would preventing loading the data for all routes concurrently, which is the point of splitting things into data and view functions in the first place.

Currently, the example loads ViewD data, ViewE data, ViewD lazy view, and ViewE lazy view concurrently, then renders the page once all have loaded.

Allowing ViewE data to read from context provided in ViewD view would create a waterfall:

  • Load ViewD data, ViewD lazy view, and ViewE lazy view concurrently
  • Wait for ViewD data a…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jhoobergs
Comment options

@gbj
Comment options

gbj Mar 14, 2026
Maintainer

Answer selected by jhoobergs
@jhoobergs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants