@mui/utils
Advanced tools
Comparing version 6.0.0-alpha.9 to 6.0.0-alpha.11
/** | ||
* @mui/utils v6.0.0-alpha.9 | ||
* @mui/utils v6.0.0-alpha.11 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
/** | ||
* @mui/utils v6.0.0-alpha.9 | ||
* @mui/utils v6.0.0-alpha.11 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -27,3 +27,5 @@ 'use client'; | ||
React.useEffect(() => { | ||
if (!isControlled && defaultValue !== defaultProp) { | ||
// Object.is() is not equivalent to the === operator. | ||
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details. | ||
if (!isControlled && !Object.is(defaultValue, defaultProp)) { | ||
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n')); | ||
@@ -30,0 +32,0 @@ } |
/** | ||
* @mui/utils v6.0.0-alpha.9 | ||
* @mui/utils v6.0.0-alpha.11 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -34,3 +34,5 @@ "use strict"; | ||
React.useEffect(() => { | ||
if (!isControlled && defaultValue !== defaultProp) { | ||
// Object.is() is not equivalent to the === operator. | ||
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details. | ||
if (!isControlled && !Object.is(defaultValue, defaultProp)) { | ||
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n')); | ||
@@ -37,0 +39,0 @@ } |
{ | ||
"name": "@mui/utils", | ||
"version": "6.0.0-alpha.9", | ||
"version": "6.0.0-alpha.11", | ||
"private": false, | ||
@@ -29,3 +29,3 @@ "author": "MUI Team", | ||
"dependencies": { | ||
"@babel/runtime": "^7.24.6", | ||
"@babel/runtime": "^7.24.7", | ||
"@types/prop-types": "^15.7.12", | ||
@@ -32,0 +32,0 @@ "prop-types": "^15.8.1", |
@@ -27,3 +27,5 @@ 'use client'; | ||
React.useEffect(() => { | ||
if (!isControlled && defaultValue !== defaultProp) { | ||
// Object.is() is not equivalent to the === operator. | ||
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details. | ||
if (!isControlled && !Object.is(defaultValue, defaultProp)) { | ||
console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n')); | ||
@@ -30,0 +32,0 @@ } |
Sorry, the diff of this file is too big to display
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
1006513
4670
Updated@babel/runtime@^7.24.7