Closed ivelichko closed 5 years ago
If TTL is enabled and resource is alive, .get call returns a Subject which cannot be properly subscribed. https://github.com/reyesoft/ngx-jsonapi/blob/v2.0/src/service.ts#L82 - here .complete() is called, which completes the returning Subject And this .next call has no effect: https://github.com/reyesoft/ngx-jsonapi/blob/v2.0/src/service.ts#L104
.get
.complete()
.next
I'd suggest to call .next before .complete in that case
.complete
Related with #208, maybe your problem will fixed.
Thanks, I'll recheck when #208 is merged
Now, is fully tested :) No same problem again :smile:
If TTL is enabled and resource is alive,
.get
call returns a Subject which cannot be properly subscribed. https://github.com/reyesoft/ngx-jsonapi/blob/v2.0/src/service.ts#L82 - here.complete()
is called, which completes the returning Subject And this.next
call has no effect: https://github.com/reyesoft/ngx-jsonapi/blob/v2.0/src/service.ts#L104I'd suggest to call
.next
before.complete
in that case