Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jun 1, 2019
1 parent 9fe4cad commit 33bfe26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/reactHotLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/reconciler/componentComparator.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const hotComponentCompare = (oldType, preNewType, setNewType, baseType) =
let result = oldType === newType;

if (
result ||
!isReloadableComponent(oldType) ||
!isReloadableComponent(newType) ||
isColdType(oldType) ||
Expand Down

0 comments on commit 33bfe26

Please sign in to comment.