not using timer: 4 requests (fetch id 1)
old timer: 1 request (fetch id 1)
new timer: 2 requests (fetch id 1 and 2)
The old timer would cache any call to fetchApp regardless of the action payload. This is not ideal because we actually want to request per payload for each endpoint. The new timer will only make the http request when the action payload is different.
This PR upgrade the cache timer middleware.
not using timer: 4 requests (fetch id 1) old timer: 1 request (fetch id 1) new timer: 2 requests (fetch id 1 and 2)
The old timer would cache any call to
fetchApp
regardless of the action payload. This is not ideal because we actually want to request per payload for each endpoint. The new timer will only make the http request when the action payload is different.