Commit 96eef38
feat: add onBackgroundRefreshFailed hook to AbstractUseStaleRequest
Replaces the silent catch block in the background refresh closure with a
no-op hook method. Consumers can override onBackgroundRefreshFailed() to
add logging or metrics without the library forcing a specific behaviour.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 63e18b4 commit 96eef38
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments