Skip to content

fix: surface toast on refreshStreamData failure - #442

Open
martinshub-tech wants to merge 1 commit into
conduit-protocol:mainfrom
martinshub-tech:fix-refresh-stream-data
Open

fix: surface toast on refreshStreamData failure#442
martinshub-tech wants to merge 1 commit into
conduit-protocol:mainfrom
martinshub-tech:fix-refresh-stream-data

Conversation

@martinshub-tech

Copy link
Copy Markdown

Closes #354

Description

This PR addresses an issue where refreshStreamData was failing silently without any user-facing feedback. Previously, when refreshStreamData was called after a successful transaction (from lib/store.ts) and the invalidation/refetch failed, it only emitted a console.warn. As a result, the UI continued to show pre-transaction balances and stream states with no indication that something went wrong.

This update introduces a toast.error within the catch block of refreshStreamData to explicitly inform the user that the data refresh failed, and provides a manual-refresh affordance by instructing them to refresh the page.

Changes Made

  • Imported react-hot-toast into lib/queryClient.ts.
  • Added a toast.error notification to surface a visible error message (Failed to refresh data. Please refresh the page manually.) if the Promise.all query invalidation fails.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@martinshub-tech 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

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.

refreshStreamData swallows invalidation failures — stale balances persist silently

1 participant