In real life (not using the mock API service), the browser will cache the response, but you'll obviously still get subsequent fetch requests (which will return immediately). You could store responses in SessionStorage or LocalStorage and check for their existence there, or put it in a Redux store.
In real life (not using the mock API service), the browser will cache the response, but you'll obviously still get subsequent fetch requests (which will return immediately). You could store responses in
SessionStorage
orLocalStorage
and check for their existence there, or put it in a Redux store.