Replies: 1 comment 2 replies
-
Hi @gCardinal - I have a similar scenario. Did you ever find a way to do this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Imagine I have a React app that serves as a makeshift microfrontend, loading applications in an iFrame. I would like for this top-level React application to be able to provide a method for child applications in the iFrame to display toasts.
The goal here is the child application does not need to concern itself on where the toast is supposed to be displayed and what it should look like.
I can easily provide the
toast()
method on the child iFrame'swindow
object, but calling this method won't display a toast. I also tried calling the method by exposing it to the parent'swindow
object, still no luck.I'm guessing it's not finding the toast container, but I'm not sure since in theory, calling it from the parent's context should work? I must be missing something silly...
Beta Was this translation helpful? Give feedback.
All reactions