react-refresh
Advanced tools
Comparing version 0.0.0-9f395904c to 0.0.0-a1dbb852c
{ | ||
"branch": "master", | ||
"buildNumber": "28552", | ||
"checksum": "9794260", | ||
"commit": "9f395904c", | ||
"buildNumber": "33869", | ||
"checksum": "2fe1c5c", | ||
"commit": "a1dbb852c", | ||
"environment": "ci", | ||
"reactVersion": "16.8.6-canary-9f395904c" | ||
"reactVersion": "16.8.6-canary-a1dbb852c" | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-9f395904c | ||
/** @license React v0.0.0-a1dbb852c | ||
* react-refresh-babel.development.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-9f395904c | ||
/** @license React v0.0.0-a1dbb852c | ||
* react-refresh-babel.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-9f395904c | ||
/** @license React v0.0.0-a1dbb852c | ||
* react-refresh-runtime.development.js | ||
@@ -115,2 +115,3 @@ * | ||
var failedRoots = new Map(); | ||
var didSomeRootFailOnMount = false; | ||
@@ -443,2 +444,15 @@ function computeFullKey(signature) { | ||
} | ||
} else if (!wasMounted && !isMounted) { | ||
if (didError && !failedRoots.has(root)) { | ||
// The root had an error during the initial mount. | ||
// We can't read its last element from the memoized state | ||
// because there was no previously committed alternate. | ||
// Ideally, it would be nice if we had a way to extract | ||
// the last attempted rendered element, but accessing the update queue | ||
// would tie this package too closely to the reconciler version. | ||
// So instead, we just set a flag. | ||
// TODO: Maybe we could fix this as the same time as when we fix | ||
// DevTools to not depend on `alternate.memoizedState.element`. | ||
didSomeRootFailOnMount = true; | ||
} | ||
} | ||
@@ -455,2 +469,6 @@ } else { | ||
function hasUnrecoverableErrors() { | ||
return didSomeRootFailOnMount; | ||
} | ||
// Exposed for testing. | ||
@@ -567,2 +585,3 @@ function _getMountedRootCount() { | ||
injectIntoGlobalHook: injectIntoGlobalHook, | ||
hasUnrecoverableErrors: hasUnrecoverableErrors, | ||
_getMountedRootCount: _getMountedRootCount, | ||
@@ -569,0 +588,0 @@ createSignatureFunctionForTransform: createSignatureFunctionForTransform, |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-9f395904c | ||
/** @license React v0.0.0-a1dbb852c | ||
* react-refresh-runtime.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.0-9f395904c", | ||
"version": "0.0.0-a1dbb852c", | ||
"homepage": "https://reactjs.org/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
53479
1227
0