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

Async loading causes dom style property gets parsed by React #6

Open
mschipperheyn opened this issue Sep 9, 2017 · 4 comments
Open

Comments

@mschipperheyn
Copy link

get

Uncaught (in promise) Error: The style prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX. This DOM node was rendered by MyConfetti.

when I load this up. React 15.6.1

@daniel-lundin
Copy link
Owner

Can you provide more context?
What is spacing?

@mschipperheyn
Copy link
Author

So, I managed to get it working. It just doesn't work when I it's loaded in a component that is rendered by react-async-component. As long as I put react-dom-confetti in the sync loaded area of the site, it works fine.

@daniel-lundin
Copy link
Owner

Interesting, I haven't tried using with async component. Do you have any idea how to fix it? Don't have much experience with lazy loaded components.

@mschipperheyn
Copy link
Author

Sorry, no.

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