live_toast icon indicating copy to clipboard operation
live_toast copied to clipboard

Can't pass component, when using `put_toast`

Open rmand97 opened this issue 9 months ago • 3 comments

When I do a put_toast it is not using the function i put in the component option, but rather the default one. It works with send_toast, but I need to use put_toast as i navigate to another page.

repo

how to reproduce

  1. click the blue button and see how it should say "My component [...]" but says "We Toasting, [...]". Here it does not use my own component for the toast. (put_toast)
  2. click the green button and watch how it uses the component. (send_toast)

rmand97 avatar Mar 12 '25 10:03 rmand97

Interesting. Thank you for the repro repo, I will take a look.

srcrip avatar Mar 21 '25 17:03 srcrip

we have same issue, but we handled it sent_toast because we don't have navigation changes but it can happen soon that we will.

oliver-kriska avatar Mar 31 '25 15:03 oliver-kriska

I understand what you're saying now. What's happening here is that the custom component option only applies to toast messages, but across navigations we have to fall back to a flash navigation. I'll have to add a custom flash component config as well. Pretty sure someone else asked for this a while ago too.

srcrip avatar Apr 15 '25 19:04 srcrip