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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Seems like cached actions might be cached on $http level, but the resource instances are re-created every time. This obviously uses more memory, and also an unexpected behavior.
If I have a simple Category resource with cached query action, and I call Category.query() from multiple directives, it does loads them all at once (expected) but instances in every place are different. Editing one instance on a directive (as an ngModel or whatever) doesn't affect the others. As a temporary solution I can wrap the query function and handle the caching myself but would be great if angular-resource took care of it.