1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

5 commits

Author SHA1 Message Date
ǝlzlǝoq lǝᴉuɐp ツ e38d81e6c1 Fix patching component's render method in case its prototype is not writable (#1067) 2017-02-12 22:14:54 +05:30
Arunoda Susiripala 4534c55968 Set displayName properly when patching React locally. (#1053)
* Using styled-jsx for with-jest example.

* Set the displayName of the wraped components.
Otherwise it won't get the correct displayName if the
original component doesn't provide it by using it's function name.
2017-02-09 15:40:31 +01:00
Arunoda Susiripala bf467e64af Do not patch prototypes with render exposed only as a getter. (#898)
* Do not patch prototypes with render exposed only as a getter.

* Use Object.getOwnPropertyDescriptor to make things simpler.

* Get the prototype which has the render method.
2017-01-28 22:50:46 +09:00
Naoyuki Kanezawa 8b94534260 Wrap render method created using class properties (2) (#856)
* wrap render method created using class properties

* use Boolean instead of double not-operator

* patch-react: move a comment
2017-01-22 10:11:56 -08:00
Naoyuki Kanezawa 8570d19af6 Handle errors of React lifecycle methods (#661)
* handle errors of lifecycle methods

* handle errors of render method
2017-01-05 09:27:39 -08:00