Skip to content

Give every match a loaders record - #810

Closed
pleek91 wants to merge 1 commit into
drop-dead-navigation-guardfrom
loaders-on-matches
Closed

Give every match a loaders record#810
pleek91 wants to merge 1 commit into
drop-dead-navigation-guardfrom
loaders-on-matches

Conversation

@pleek91

@pleek91 pleek91 commented Aug 3, 2026

Copy link
Copy Markdown
Member

Description

Third step of #805, stacked on #809. No behaviour changes — nothing reads these records yet.

Loaders are a route's data, declared the way views are declared but with no component attached and no hold on rendering. Storing them per match, alongside views, means a route's data can be derived from its matches the same way its views already are — including an ancestor's loaders, which a child should be able to use as its own.

route.data is that derivation: the loaders of every match combined, flattened to the loader's data directly when the only loader in the tree is unnamed. This PR adds the types and the empty record; the method that fills it and the store that runs it follow.

Loaders are stored per match alongside views, so a route's data can be
derived from its matches the same way its views are.
@pleek91
pleek91 force-pushed the loaders-on-matches branch from d7ca09e to 736a826 Compare August 3, 2026 17:47
@pleek91
pleek91 changed the base branch from props-on-data-store to drop-dead-navigation-guard August 3, 2026 17:47
@pleek91

pleek91 commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

Folded into #811 — the loaders record isn't useful on its own without the method that fills it.

@pleek91 pleek91 closed this Aug 3, 2026
@pleek91
pleek91 deleted the loaders-on-matches branch August 3, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant