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

Decorator not compatible with Preact #235

Open
RobbieTheWagner opened this issue Jul 25, 2019 · 0 comments
Open

Decorator not compatible with Preact #235

RobbieTheWagner opened this issue Jul 25, 2019 · 0 comments

Comments

@RobbieTheWagner
Copy link

RobbieTheWagner commented Jul 25, 2019

If I use @css when render is called, it is not passed props anymore and you have to access them via this.props.

Also, react is called explicitly here https://github.com/streamich/nano-css/blob/master/addon/util/transformComponentStatic.js#L18

For compatibility this should be configurable.

@RobbieTheWagner RobbieTheWagner changed the title Decorator breaks passing of props to render in Preact Decorator not compatible with Preact Jul 25, 2019
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

1 participant