Skip to content

Commit cdbcb4a

Browse files
committed
fix: Disable a React Hooks ESLint check in App.tsx
1 parent 1604ab4 commit cdbcb4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/primer-app/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const App = (): JSX.Element => {
1212
<Error string={"No session id parameter: " + JSON.stringify(params)} />
1313
);
1414
}
15+
// This hook is *technically* conditional.
16+
// But if the condition above fails, then the app is broken anyway.
17+
// eslint-disable-next-line react-hooks/rules-of-hooks
1518
const queryRes = useGetApiProgram({ session });
1619

1720
if (!queryRes.isSuccess) {

0 commit comments

Comments
 (0)