Postmessage listener registered to late to receive messages #10519
Unanswered
alexander-schranz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My remix application is embedded, the embedder sends me the data with postmessage. After the iframe is loaded a postmessage is send to the remix application:
Inside the Remix application I'm listening to postmessage event:
The problem is that
frame.onload
is called beforeuseEffect
call I'm not sure how I can register that message listener before the frame onload is called without forcing a delay of the postmessage. I even tried<script>
but that ended in hydration errors.Beta Was this translation helpful? Give feedback.
All reactions