Skip to content

feat(api,hooks): add client request caching, retry backoff, and mount… - #401

Merged
DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
reuben148:feat/api-client-cache-retry-hooks-294-297
Aug 30, 2026
Merged

feat(api,hooks): add client request caching, retry backoff, and mount…#401
DeFiVC merged 1 commit into
ChainLearnOfficial:mainfrom
reuben148:feat/api-client-cache-retry-hooks-294-297

Conversation

@reuben148

Copy link
Copy Markdown
Contributor

…/unmount hooks

Closes #294
Closes #295
Closes #296
Closes #297

…/unmount hooks

- Cache ApiClient GET responses with TTL, mutation invalidation, and a
  bypass option (ChainLearnOfficial#297)
- Retry GET requests on 5xx and network errors with exponential backoff
  (1s/2s/4s, max 3) and stop retrying mutations (ChainLearnOfficial#296)
- Add useMount and useUnmount hooks (ChainLearnOfficial#294, ChainLearnOfficial#295)

Closes ChainLearnOfficial#294
Closes ChainLearnOfficial#295
Closes ChainLearnOfficial#296
Closes ChainLearnOfficial#297
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@reuben148 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Aug 30, 2026

Copy link
Copy Markdown

Deploy Preview for chainlearn failed.

Name Link
🔨 Latest commit d09c14c
🔍 Latest deploy log https://app.netlify.com/projects/chainlearn/deploys/6a946cb5475a7d0008f51cfa

@DeFiVC
DeFiVC merged commit 79ca73e into ChainLearnOfficial:main Aug 30, 2026
0 of 4 checks passed
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.

. Add api/client.ts request caching . Add api/client.ts retry logic with exponential backoff . Add use-unmount.ts hook . Add use-mount.ts hook

2 participants