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
fix: fixes cache leak and unhandled promise rejection (#152)
Fixes some bugs in the new request cache:
1. When stopping the client we were supposed to remove the response cache, instead we were deleting an item from the cache
2. When stopping we were `void`ing the cache deletion - this can cause unhandled promise rejections so switches to `await`ing the promise instead
3. When starting the cache was being created asynchronously but without waiting for the promise to resolve, so you could stop the client before the cache was intialized which would mean it is never cleaned up
Also not a bug but it also makes the cache name configurable.
0 commit comments