Skip to content

Commit

Permalink
fix: apend react-hot-dom patch note to the ProxyFacade, fixes #1311
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jul 27, 2019
1 parent 980ab8d commit 81bbb6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/proxy/createClassProxy.js
Expand Up @@ -261,6 +261,17 @@ function createClassProxy(InitialComponent, proxyKey, options = {}) {

// eslint-disable-next-line func-names
ProxyFacade = function(props, context) {
/*
! THIS IS NOT YOUR COMPONENT !
! THIS IS REACT-HOT-LOADER !
And you probably looking for a function component of yours
Easy - just reconfigure your application a bit
see https://github.com/gaearon/react-hot-loader/issues/1311
*/

const result = CurrentComponent(props, context);

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

0 comments on commit 81bbb6a

Please sign in to comment.