Skip to content

Commit

Permalink
Final adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Aug 14, 2024
1 parent 7a2c761 commit 4210f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/mui-styles/src/StylesProvider/StylesProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ export default function StylesProvider(props) {
if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
if (!injectFirstNode) {
const head = document.head;
// TODO: uncomment once we enable eslint-plugin-react-compiler
// eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
// eslint-disable-next-line react-hooks/rules-of-hooks
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- injectFirstNode is called inside callback
injectFirstNode = document.createComment('mui-inject-first');
head.insertBefore(injectFirstNode, head.firstChild);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/mui-styles/src/makeStyles/makeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ function useSynchronousEffect(func, values) {
let output;

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

// "the first render", or "memo dropped the value"
Expand Down

0 comments on commit 4210f19

Please sign in to comment.