Aggregating route loaders #10189
guardian-farm
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a function (LoaderFunction) which handles executing the arguments in sequence, for example, I have a loader that verifies there is a user, the if the user has specific permissions, and lastly the one which actually fetches the data, This allows for small reusable loaders to be written. I've already got the code and would be happy to do the pull request.
This could also be adapted to handle generator functions as well.
Beta Was this translation helpful? Give feedback.
All reactions