5 ms·
Why should it be the router? A saner option is to let the parent component coordinate the data fetches for the child components. What you are suggesting is way
by nvlled 11mo ago
Why should it be the router? A saner option is to let the parent component coordinate the data fetches for the child components. What you are suggesting is way out of the normal responsibility of a router.
- Swizec 11mo agoThe router is just the most parenty component. It’s the component that takes some input (like a url) and uses what is essentially a giant switch statement to decide what gets rendered.
- ricardobeat 11mo agoYou could justify putting anything and everything in the router with this argument.