Skip to content

fix(error-book): avoid full reload and invalid pagination after deleting records - #1067

Open
lihongzy wants to merge 1 commit into
RealKai42:masterfrom
lihongzy:fix-error-book-delete
Open

fix(error-book): avoid full reload and invalid pagination after deleting records #1067
lihongzy wants to merge 1 commit into
RealKai42:masterfrom
lihongzy:fix-error-book-delete

Conversation

@lihongzy

Copy link
Copy Markdown

Summary

  • avoid reloading all ErrorBook records after delete
  • update local state directly after successful deletion
  • keep pagination valid after deleting the last item on a page
  • use Map for grouping to reduce unnecessary overhead

Why

Previously, deleting a record in ErrorBook triggered a full reload and regrouped all records from scratch.
It could also leave the current page out of range after deleting the last item on the last page.

Scope

Only updates src/pages/ErrorBook/index.tsx.

@vercel

vercel Bot commented Mar 25, 2026

Copy link
Copy Markdown

@lihongzy is attempting to deploy a commit to the Kai's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant