mirror of
https://github.com/block/buzz.git
synced 2026-11-05 00:41:28 +00:00
fix(desktop): contain history retry failures
Keep exhausted recovery retries inside the notice action so retained history remains usable without an unhandled rejection. Co-authored-by: Carl <9d00794d3df50972eb8b615511783cab12a77a8fd5dd5edd58073ec73b54bd8b@buzz.block.builderlab.xyz> Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
@@ -51,6 +51,10 @@ export function HistoryRefreshNotice({
|
||||
);
|
||||
try {
|
||||
await refreshChannelWindowMessages(client, channelId);
|
||||
} catch {
|
||||
// Exhausted query retries are already projected into refreshError.
|
||||
// The recovery button owns this promise, so contain the rejection here.
|
||||
return;
|
||||
} finally {
|
||||
// The observer can unmount before hydration/invalidation starts a fetch.
|
||||
// Retire an unclaimed token too, without clearing a newer button click.
|
||||
|
||||
Reference in New Issue
Block a user