Use resource routes for all data fetching ? #9208
-
What are the downsides if any, of creating resource routes for all your data operations and reusing them throughout the app where you need them? Instead of repeating the same loader or action. |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Apr 8, 2024
Replies: 1 comment 3 replies
-
You would need to fetch them, instead of just calling a function in your loaders and actions that can be shared and avoid a network roundtrip. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Burzmalian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would need to fetch them, instead of just calling a function in your loaders and actions that can be shared and avoid a network roundtrip.