spotify / confidence-sdk-js

Other
9 stars 1 forks source link

fix: shared requests aborted #169

Closed andreas-karlsson closed 3 months ago

andreas-karlsson commented 3 months ago

Hi There, I just made a Pull Request!

Due to the client cache resolve requests can be shared. We keep a ref-count in the cache entries and clear the entry when the ref-count drops to zero. However we inadvertently aborted the original request as soon as any ref was aborted. Added tests to show this and a fix.

:heavy_check_mark: Checklist