0

I have a service which GETs data from some API and a pair of components each calling this service on init to set properties with a copy of the data.

I also want this service to start caching data in memory to stop unnecessary calls to the server whenever data is requested.

This would mean I'd have several copies of the same data (in each component and in cache).

Is there a way to fetch data for rendering a component and then throw the data away, not keeping it in a component's property?

Alexei Tenitski
  • 9,030
  • 6
  • 41
  • 50

0 Answers0