Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page breaks when passing onEmbedded prop to PowerbiEmbedded component #23

Open
Danilo4lves opened this issue May 27, 2020 · 2 comments
Open

Comments

@Danilo4lves
Copy link

Even if I pass just an empty arrow function, the page breaks and the console gives me the error: "DataCloneError: The object could not be cloned."

@howlowck
Copy link
Owner

Hey @Danilo4lves thanks for raising this. I did some digging and it looks like the issue is by the combination of the fact that pbi is embedding an iframe and React is using postMessage (probably) in its React hook implementation.

Off the top of my head, I don't see a good workaround for this. But I'll sleep on it and see if anything comes to mind.

@howlowck
Copy link
Owner

I'm thinking about removing the onEmbedded property in the next version, if there is no path forward with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants