From 33bfe26738c3c240276387cabbd6d8374aa19b98 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Sat, 1 Jun 2019 17:55:35 +1000 Subject: [PATCH] tidy up --- src/reactHotLoader.js | 11 +++++------ src/reconciler/componentComparator.js | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/reactHotLoader.js b/src/reactHotLoader.js index 23e9f30ce..a782f1cc8 100644 --- a/src/reactHotLoader.js +++ b/src/reactHotLoader.js @@ -115,12 +115,11 @@ const reactHotLoader = { reactHotLoader.IS_REACT_MERGE_ENABLED = true; configuration.showReactDomPatchNotification = false; - // console.warn('react-🔥-loader activated.'); - } - if (ReactDOM && ReactDOM.setHotTypeResolver) { - console.log('Types 2'); - configuration.intergratedResolver = true; - ReactDOM.setHotTypeResolver(resolveType); + + if (ReactDOM.setHotTypeResolver) { + configuration.intergratedResolver = true; + ReactDOM.setHotTypeResolver(resolveType); + } } if (!configuration.intergratedResolver) { diff --git a/src/reconciler/componentComparator.js b/src/reconciler/componentComparator.js index 578ce3406..5c904fa08 100644 --- a/src/reconciler/componentComparator.js +++ b/src/reconciler/componentComparator.js @@ -96,6 +96,7 @@ export const hotComponentCompare = (oldType, preNewType, setNewType, baseType) = let result = oldType === newType; if ( + result || !isReloadableComponent(oldType) || !isReloadableComponent(newType) || isColdType(oldType) ||