Skip to content

Commit 220bb9b

Browse files
committed
suppress remaining errors
1 parent 5979f55 commit 220bb9b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/main/src/components/ThemeProvider/I18n.cy.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ describe('I18nProvider', () => {
7272
return (
7373
<>
7474
<span>{i18nBundle.getText('PLEASE_WAIT')}</span>
75+
{/* eslint-disable-next-line react-hooks/refs */}
7576
<span data-testid="counter">{renderCounter.current}</span>
7677
</>
7778
);

packages/main/src/internal/useObserveHeights.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export const useObserveHeights = (
2626

2727
const prevScrollTop = useRef(0);
2828
const onScroll = useCallback(
29+
// ToDo: Check how to properly memoize this callback so it supports React Compiler
30+
// eslint-disable-next-line react-hooks/preserve-manual-memoization
2931
(e) => {
3032
const scrollDown = prevScrollTop.current <= e.target.scrollTop;
3133
prevScrollTop.current = e.target.scrollTop;

0 commit comments

Comments
 (0)