Skip to content

fix: fix cache when request fail#2

Open
ben-barbier wants to merge 1 commit intoashwin-sureshkumar:masterfrom
ben-barbier:patch-1
Open

fix: fix cache when request fail#2
ben-barbier wants to merge 1 commit intoashwin-sureshkumar:masterfrom
ben-barbier:patch-1

Conversation

@ben-barbier
Copy link

No description provided.

@ashwin-sureshkumar
Copy link
Owner

@ben-barbier - Thanks for the PR. Really appreciate it !

return fallback
.do((value) => { this.set(key, value, maxAge); })
.catch((err) => {
this.notifyInFlightObservers(key, null);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good if the observers get the error thrown, since they could individually handle any errors from the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments