top | item 45761226

(no title)

nvlled | 4 months 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.

discuss

order

Swizec|4 months ago

The 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|4 months ago

You could justify putting anything and everything in the router with this argument.