Skip to content

Commit 8bfd2f7

Browse files
committed
chore(changeset): rows emptied without a read forget the count too
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
1 parent 0d4e8af commit 8bfd2f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.changeset/36822-related-list-zero-badge-refetch.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ fix(plugin-detail): a related list that already shows 0 keeps showing 0 while it
77
Clause-②: no
88
Metadata-protocol: none
99

10-
A related list on a record page whose count was known to be 0 used to drop its count badge for as long as a reload took (after a delete, a filter change or any other refetch), because an empty list being read looked like a list read for the first time. Once a read the list issued has answered, its count is known, so a later reload keeps drawing that count until the new one lands. A read that fails forgets the count, so its Retry draws no count until it answers, never a false 0. A list's first read, including one that starts only once its parent record has loaded, still draws no count while it is in flight.
10+
A related list on a record page whose count was known to be 0 used to drop its count badge for as long as a reload took (after a delete, a filter change or any other refetch), because an empty list being read looked like a list read for the first time. Once a read the list issued has answered, its count is known, so a later reload keeps drawing that count until the new one lands. A read that fails forgets the count, so its Retry draws no count until it answers, never a false 0; so do rows emptied without a read (the parent record reloading, or no data adapter), so the next parent's read draws no count either. A list's first read, including one that starts only once its parent record has loaded, still draws no count while it is in flight.

0 commit comments

Comments
 (0)