Skip to content

A way to trigger or listen to events inside bundled code #37

Answered by alexnm
nkovacic asked this question in Q&A
Discussion options

You must be logged in to vote

This would require a framework agnostic approach, as sandpack can run any frontend framework/code. I'm curious though, what would be your use case for this? You can theoretically make it work with the current implementation if you do a postMessage in your code towards the window.parent.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nkovacic
Comment options

Answer selected by nkovacic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants