diff --git a/packages/mui-joy/src/Checkbox/Checkbox.tsx b/packages/mui-joy/src/Checkbox/Checkbox.tsx index 78f44f65f592e9..a924c348f30529 100644 --- a/packages/mui-joy/src/Checkbox/Checkbox.tsx +++ b/packages/mui-joy/src/Checkbox/Checkbox.tsx @@ -246,6 +246,7 @@ const Checkbox = React.forwardRef(function Checkbox(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/FormControl/FormControl.tsx b/packages/mui-joy/src/FormControl/FormControl.tsx index 5562aaad8b76d2..8155e98761b67f 100644 --- a/packages/mui-joy/src/FormControl/FormControl.tsx +++ b/packages/mui-joy/src/FormControl/FormControl.tsx @@ -128,6 +128,7 @@ const FormControl = React.forwardRef(function FormControl(inProps, ref) { let registerEffect: undefined | (() => () => void); if (process.env.NODE_ENV !== 'production') { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks const registeredInput = React.useRef(false); registerEffect = () => { diff --git a/packages/mui-joy/src/Input/Input.tsx b/packages/mui-joy/src/Input/Input.tsx index 4c78559dbb456e..4f70ee4286dab3 100644 --- a/packages/mui-joy/src/Input/Input.tsx +++ b/packages/mui-joy/src/Input/Input.tsx @@ -271,6 +271,7 @@ const Input = React.forwardRef(function Input(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Radio/Radio.tsx b/packages/mui-joy/src/Radio/Radio.tsx index 70207ef81727a6..bb8c41dae97d7f 100644 --- a/packages/mui-joy/src/Radio/Radio.tsx +++ b/packages/mui-joy/src/Radio/Radio.tsx @@ -280,6 +280,7 @@ const Radio = React.forwardRef(function Radio(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx index fabd7e41b0e7ed..86b2d6eca50067 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx @@ -110,6 +110,7 @@ const RadioGroup = React.forwardRef(function RadioGroup(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Select/Select.tsx b/packages/mui-joy/src/Select/Select.tsx index 5a4db947b53849..d9cafc31c217a9 100644 --- a/packages/mui-joy/src/Select/Select.tsx +++ b/packages/mui-joy/src/Select/Select.tsx @@ -375,6 +375,7 @@ const Select = React.forwardRef(function Select { if (registerEffect) { diff --git a/packages/mui-joy/src/Switch/Switch.tsx b/packages/mui-joy/src/Switch/Switch.tsx index a79c284c5f9bfa..47a23efe95cdca 100644 --- a/packages/mui-joy/src/Switch/Switch.tsx +++ b/packages/mui-joy/src/Switch/Switch.tsx @@ -259,6 +259,7 @@ const Switch = React.forwardRef(function Switch(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Textarea/Textarea.tsx b/packages/mui-joy/src/Textarea/Textarea.tsx index 6b5c3b6567f630..c365fc898cd28e 100644 --- a/packages/mui-joy/src/Textarea/Textarea.tsx +++ b/packages/mui-joy/src/Textarea/Textarea.tsx @@ -241,6 +241,7 @@ const Textarea = React.forwardRef(function Textarea(inProps, ref) { if (process.env.NODE_ENV !== 'production') { const registerEffect = formControl?.registerEffect; + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useEffect(() => { if (registerEffect) { diff --git a/packages/mui-joy/src/Tooltip/Tooltip.tsx b/packages/mui-joy/src/Tooltip/Tooltip.tsx index 22c560f0ecf439..b3c6e14d88324a 100644 --- a/packages/mui-joy/src/Tooltip/Tooltip.tsx +++ b/packages/mui-joy/src/Tooltip/Tooltip.tsx @@ -264,6 +264,7 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { const prevUserSelect: React.MutableRefObject = React.useRef(); const stopTouchInteraction = useEventCallback(() => { if (prevUserSelect.current !== undefined) { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- WebkitUserSelect is required outside the component (document.body.style as unknown as { WebkitUserSelect?: string }).WebkitUserSelect = prevUserSelect.current; prevUserSelect.current = undefined; diff --git a/packages/mui-joy/src/styles/ThemeProvider.tsx b/packages/mui-joy/src/styles/ThemeProvider.tsx index f0ba9c0ad63c95..62037297e3f508 100644 --- a/packages/mui-joy/src/styles/ThemeProvider.tsx +++ b/packages/mui-joy/src/styles/ThemeProvider.tsx @@ -11,6 +11,7 @@ export const useTheme = (): Theme => { const theme = useSystemTheme(defaultTheme); if (process.env.NODE_ENV !== 'production') { + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes // eslint-disable-next-line react-hooks/rules-of-hooks React.useDebugValue(theme); } diff --git a/packages/mui-joy/src/styles/extendTheme.test.js b/packages/mui-joy/src/styles/extendTheme.test.js index fe85a90982d372..29a7da8c536391 100644 --- a/packages/mui-joy/src/styles/extendTheme.test.js +++ b/packages/mui-joy/src/styles/extendTheme.test.js @@ -241,6 +241,7 @@ describe('extendTheme', () => { function Test() { const theme = useTheme(); + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- styles is required outside the component styles = theme.unstable_sx({ bgcolor: 'primary.500' }); return null; }