You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the above router. When you visit /animals/1/dog, the animalsLoader and dogLoader are called at the same time. I'm hoping that we can call these loaders sequentially and allow dogLoader to use information from animalLoader's data.
Why should this feature be included?
If we make this a less trivial example, suppose any nested route under animals calls auth and fetches user information to view any nested route under it. And there's a non-trivial amount of routes under animals. Allowing for sequential loader calls, let's us perform this action easily.
The text was updated successfully, but these errors were encountered:
What is the new or updated feature that you are suggesting?
Current behavior for nested loaders in data routers have all loaders firing at once when visiting a route. For example:
I have the above router. When you visit
/animals/1/dog
, theanimalsLoader
anddogLoader
are called at the same time. I'm hoping that we can call these loaders sequentially and allowdogLoader
to use information fromanimalLoader
's data.Why should this feature be included?
If we make this a less trivial example, suppose any nested route under
animals
calls auth and fetches user information to view any nested route under it. And there's a non-trivial amount of routes underanimals
. Allowing for sequential loader calls, let's us perform this action easily.The text was updated successfully, but these errors were encountered: