tanstack.com icon indicating copy to clipboard operation
tanstack.com copied to clipboard

Copy Markdown button initially shows 2 toast notification

Open villAsh opened this issue 3 months ago • 1 comments

The issue: initially when you press the copy markdown button it shows 2 toast notification instead of 1. 1 is the actual toast notification and 2nd one is the fallback.

Steps to reproduce:

  1. Go to any page with copy markdown option.
  2. Click on Copy Markdown button.
  3. See the 2 notification.
  4. (Optional) you can reload the page and follow the same steps as well.
Image

The key issue is that the fallback toast is triggered in the same promise chain, even when the fetch and clipboard operations succeed

villAsh avatar Oct 21 '25 12:10 villAsh