-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed as not planned
Labels
feature-requestUsed to close PRs that haven't gone through/been accepted the Proposal process yetUsed to close PRs that haven't gone through/been accepted the Proposal process yet
Description
What is the new or updated feature that you are suggesting?
Currently, components are able to get data from parent loaders with useRouteLoaderData
. Since this is a hook, it can not be called in a loader function and so there is no way to make child fetches dependent on parent fetches.
Proposed API:
const loader = ({ routeLoaderData }) => {
const parentData = routeLoaderData('parentId')
...
}
Why should this feature be included?
Many cases for dependent fetches.
anupriya17, zanona, fetters5, davidohlin, geek-at and 38 more
Metadata
Metadata
Assignees
Labels
feature-requestUsed to close PRs that haven't gone through/been accepted the Proposal process yetUsed to close PRs that haven't gone through/been accepted the Proposal process yet