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
thrownewError('Response for getList SHOULD be an array and not an object or something else');
}
This means that you can't use observables or promises in interceptors.
Additionally, I can't find a way to resolve the observable 'inside' the interceptor and have the actual data returned from the interceptor (though I am relatively new to observables/promises so might be missing something here).
The text was updated successfully, but these errors were encountered:
Hello @mrichar1. Unfortunately you can't use observables or promises in response interceptors. It might be implemented in next major version of restangular.
I'm currently looking to use some methods in
addResponseInterceptor
function which return observables.With the current code for
getList
explicitly raises an error if the resulting data is not anarray
:ngx-restangular/src/ngx-restangular.ts
Lines 423 to 425 in 7ffda9b
This means that you can't use observables or promises in interceptors.
Additionally, I can't find a way to resolve the observable 'inside' the interceptor and have the actual data returned from the interceptor (though I am relatively new to observables/promises so might be missing something here).
The text was updated successfully, but these errors were encountered: