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

Defer style prefixing until componentDidMount #50

Closed
bvaughn opened this issue Jan 10, 2016 · 0 comments
Closed

Defer style prefixing until componentDidMount #50

bvaughn opened this issue Jan 10, 2016 · 0 comments
Labels

Comments

@bvaughn
Copy link
Owner

bvaughn commented Jan 10, 2016

Server-side rendering logs the following warning:

Either the global navigator was undefined or an invalid userAgent was provided. Using a valid userAgent? Please let us know and create an issue at https://github.com/rofrischmann/inline-style-prefixer/issues

This is because we're prefixing the initial styles in the constructor rather at which point we may be in a server-side rendering context. We should probably move this prefixing operation to componentDidMount to ensure that we're in a browser context.

This will require a re-render but that's probably acceptable.

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

No branches or pull requests

1 participant