-
Notifications
You must be signed in to change notification settings - Fork 262
order of decorators causing some decorators not to apply #80
Comments
|
Sorry, I didn't see that it causes |
@jayphelps in this issue the author describes why it doesn't work when |
@tommedema right, perhaps I'm misunderstanding. Can you clarify: if you place |
@jayphelps if I place |
@tommedema I just tried it and the combination of the two work correct for me. I used the latest versions of both libraries, with babel v6. I dug into the code for react-css-modules and found something that is possibly suspicious. If you apply So to further investigate, can you let me know what version of core-decorators you're using? Some of these fixes were fairly recent, If you're on the latest version, can you copy and paste you're entire npm |
Just found that react-css-modules also extends your passed in class directly and invokes Also--in case you're blocked on this, just want to clarify that you can just use |
Closing due to inactivity, but if this is still an issue please do let me know with the requested info above. |
When combining e.g.
autobind
with react-css-modules theautobind
decorator stops working, unless it is specified as the last decorator (closest to the class declaration). I.e. this makesautobind
work:But
cssModules
to fail. The following will make@autobind
have no effect.Is this because of how
@cssModules
was implemented, or is@autobind
also playing a role in this issue?The text was updated successfully, but these errors were encountered: