Skip to content

Commit 4210f19

Browse files
committed
Final adjustments
1 parent 7a2c761 commit 4210f19

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/mui-styles/src/StylesProvider/StylesProvider.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ export default function StylesProvider(props) {
8484
if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
8585
if (!injectFirstNode) {
8686
const head = document.head;
87-
// TODO: uncomment once we enable eslint-plugin-react-compiler
88-
// eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
89-
// eslint-disable-next-line react-hooks/rules-of-hooks
87+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
9088
injectFirstNode = document.createComment('mui-inject-first');
9189
head.insertBefore(injectFirstNode, head.firstChild);
9290
}

packages/mui-styles/src/makeStyles/makeStyles.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ function useSynchronousEffect(func, values) {
164164
let output;
165165

166166
// Store "generation" key. Just returns a new object every time
167-
// TODO: uncomment once we enable eslint-plugin-react-compiler //
168-
// eslint-disable-next-line react-compiler/react-compiler
167+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
169168
const currentKey = React.useMemo(() => ({}), values); // eslint-disable-line react-hooks/exhaustive-deps
170169

171170
// "the first render", or "memo dropped the value"

0 commit comments

Comments
 (0)