You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is the possibility for the action to be smarter about how it returns data. For example, it could return from the store immediately if the data is 'fresh' rather than always querying the API. This would improve performance.
This is probably best implemented by looking at cache timeout info as provided by the API, possibly some other headers like etags etc?
The text was updated successfully, but these errors were encountered:
mrichar1
changed the title
Smart action returns via getter
Cached returns from actions (via getters)
Oct 11, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
After developing and using this library for a while, it's apparent that for current use cases, caching at the API server end (cache-control, etags etc) is implemented at some level in most JSONAPI servers to an extent that local caching wouldn't add much benefit for the extra work that would be involved.
There is the possibility for the action to be smarter about how it returns data. For example, it could return from the store immediately if the data is 'fresh' rather than always querying the API. This would improve performance.
This is probably best implemented by looking at cache timeout info as provided by the API, possibly some other headers like etags etc?
The text was updated successfully, but these errors were encountered: