Skip to content

[1/2] [@graphiql/react] compile source code with react-compiler, remove useMemo and useCallback usages #994

[1/2] [@graphiql/react] compile source code with react-compiler, remove useMemo and useCallback usages

[1/2] [@graphiql/react] compile source code with react-compiler, remove useMemo and useCallback usages #994

Triggered via pull request December 11, 2024 08:03
Status Success
Total duration 5m 25s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

18 warnings
Install
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check Licenses
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
CSpell
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Jest Unit & Integration Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Vitest Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ESLint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ESLint: packages/graphiql-react/src/editor/context.tsx#L325
The 'setShouldPersistHeaders' function makes the dependencies of useEffect Hook (at line 345) change on every render. To fix this, wrap the definition of 'setShouldPersistHeaders' in its own useCallback() Hook
ESLint: packages/graphiql-react/src/editor/query-editor.ts#L517
The 'externalFragmentList' array makes the dependencies of useEffect Hook (at line 531) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'externalFragmentList' in its own useMemo() Hook
ESLint: packages/graphiql-react/src/plugin.tsx#L153
The 'setVisiblePlugin' function makes the dependencies of useEffect Hook (at line 172) change on every render. To fix this, wrap the definition of 'setVisiblePlugin' in its own useCallback() Hook
ESLint: packages/graphiql-react/src/schema.tsx#L289
React Hook useCallback has missing dependencies: 'introspectionQuery', 'introspectionQueryName', 'introspectionQuerySansSubscriptions', and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useCallback call and refer to those specific props inside useCallback
ESLint: packages/graphiql-react/src/utility/resize.ts#L75
The 'setHiddenElementWithCallback' function makes the dependencies of useEffect Hook (at line 262) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'setHiddenElementWithCallback' in its own useCallback() Hook
Cypress
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Canary
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Canary
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Canary
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Canary
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/