emilkowalski / sonner

An opinionated toast component for React.
https://sonner.emilkowal.ski
MIT License
8.37k stars 263 forks source link

Question: Is it possible to dynamically update the custom type #422

Open basickarl opened 4 months ago

basickarl commented 4 months ago

Is it possible to dynamically update the custom type (toast.custom) content without dismissing the current toast?

The reason we have a progress bar inside the toast and would like to update a value inside the toast. We are aware we can manipulate the DOM but are wondering if there is a mechanism not stated in the docs that can fix this.

MildTomato commented 3 months ago

maybe this ?