Hacker News new | ask | show | jobs
by supermatt 978 days ago
If you have multiple components that require access to the same data do you fetch the same data multiple times?
1 comments

I send it in a custom event to the part of the system that needs it.

Or I ask multiple times.

Asking multiple times is a tradeoff - if you are really needing to economise on back end server load then maybe front end caching matters more. But if your back end isn't going to mind, then ask again.