Skip to content

Commit 80488d9

Browse files
committed
more to ignore
1 parent 9bcc2f9 commit 80488d9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/compass-app-registry/src/react-context.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export function GlobalAppRegistryProvider({
5757
value?: AppRegistry;
5858
children?: React.ReactNode;
5959
}) {
60+
// eslint-disable-next-line react-hooks/refs
6061
const appRegistry = useRef(value ?? globalAppRegistry).current;
6162
return (
6263
<GlobalAppRegistryContext.Provider value={appRegistry}>
@@ -76,11 +77,13 @@ export function AppRegistryProvider({
7677
const initialPropsRef = useRef(props);
7778
const {
7879
localAppRegistry: initialLocalAppRegistry,
80+
// eslint-disable-next-line react-hooks/refs
7981
deactivateOnUnmount = true,
8082
} = initialPropsRef.current;
8183

8284
const globalAppRegistry = useGlobalAppRegistry();
8385
const isTopLevelProvider = useIsTopLevelProvider();
86+
// eslint-disable-next-line react-hooks/refs
8487
const [localAppRegistry] = useState(() => {
8588
return (
8689
initialLocalAppRegistry ??
@@ -102,6 +105,7 @@ export function AppRegistryProvider({
102105
localAppRegistry.deactivate();
103106
}
104107
};
108+
// eslint-disable-next-line react-hooks/refs
105109
}, [localAppRegistry, initialLocalAppRegistry, deactivateOnUnmount]);
106110

107111
return (

packages/compass-app-registry/src/register-plugin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function LegacyRefluxProvider({
9191
children: React.ReactElement;
9292
}) {
9393
const storeRef = useRef(store);
94+
// eslint-disable-next-line react-hooks/refs
9495
const [state, setState] = useState(() => {
9596
return storeRef.current.state;
9697
});

packages/compass-context-menu/src/context-menu-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function ContextMenuProvider({
5151
);
5252

5353
const onContextMenuOpenRef = useRef(onContextMenuOpen);
54+
// eslint-disable-next-line react-hooks/refs
5455
onContextMenuOpenRef.current = onContextMenuOpen;
5556

5657
const handleClosingEvent = useCallback(

0 commit comments

Comments
 (0)