Closed ntkoopman closed 8 years ago
@ntkoopman looks like something odd is going on with the tests, might be unrelated to your work. I'm happy to include the decorators plugin as a dependency if it means we can test this kind of issue.
I've add a unit test
@ntkoopman thanks!
When using a decorator that introduces a higher order class, the propTypes where assigned to the wrong class.
I did not include a unit test for this, as decorators currently require a non-standard transformation to work. I can add one if this is not a problem.
This patch assumes that you have the class properties transformation enabled if you have are using decorators (because there is no simple way to assign things to the prototype of the decorated class without them).