reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Resource when cached is not loading during "GET" call #75

Closed sunel closed 6 years ago

sunel commented 6 years ago

After investigating found that

https://github.com/reyesoft/ngx-jsonapi/blob/19ef509fdc345f9d28b1b73eccb8617a627e9e29/src/service.ts#L172-L191

this is what is causing the resource not been called https://github.com/reyesoft/ngx-jsonapi/blob/19ef509fdc345f9d28b1b73eccb8617a627e9e29/src/service.ts#L190

Removing subject.complete(); makes the code work fine

I believe subjects once completed cannot emit any longer