Skip to content

Commit 81bbb6a

Browse files
committed
fix: apend react-hot-dom patch note to the ProxyFacade, fixes #1311
1 parent 980ab8d commit 81bbb6a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/proxy/createClassProxy.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@ function createClassProxy(InitialComponent, proxyKey, options = {}) {
261261

262262
// eslint-disable-next-line func-names
263263
ProxyFacade = function(props, context) {
264+
/*
265+
266+
! THIS IS NOT YOUR COMPONENT !
267+
! THIS IS REACT-HOT-LOADER !
268+
269+
And you probably looking for a function component of yours
270+
Easy - just reconfigure your application a bit
271+
see https://github.com/gaearon/react-hot-loader/issues/1311
272+
273+
*/
274+
264275
const result = CurrentComponent(props, context);
265276

266277
// This is a Relay-style container constructor. We can't do the prototype-

0 commit comments

Comments
 (0)