Skip to content

Commit

Permalink
Remove resource from resourcesWithError in Resource#clearError
Browse files Browse the repository at this point in the history
  • Loading branch information
kyarik committed Nov 28, 2020
1 parent a95b84b commit 3ce31d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lazyResource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export const lazyResource = <T>(
if (error !== null) {
promise = null;
error = null;

resourcesWithError.delete(resource);
}
};

Expand Down

0 comments on commit 3ce31d0

Please sign in to comment.