fix(indexd): invalidate alerts cache on dismiss#1471
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
🦋 Changeset detectedLatest commit: 3b9a6e1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
Pull request overview
This PR updates the indexd-react admin alert dismissal hook to ensure the SWR cache for alerts is invalidated after a dismiss action, so dismissed alerts disappear without requiring a full browser refresh.
Changes:
- Add an
aftercallback touseAdminAlertsDismissthat mutates (revalidates) cached requests whose route starts withadminAlertsRoute. - Add a Changesets entry documenting the fix and linking the closed issue.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| libs/indexd-react/src/admin.ts | Invalidate/revalidate SWR cache for /alerts* routes after dismissing alerts. |
| .changeset/clear-files-hang.md | Publish note for @siafoundation/indexd-react describing the dismissed-alerts refresh fix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

No description provided.