Skip to content

Fixing exhaustive-deps lint errors for hooks #1455

Fixing exhaustive-deps lint errors for hooks

Fixing exhaustive-deps lint errors for hooks #1455

Triggered via pull request October 30, 2024 10:09
Status Success
Total duration 3m 18s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

17 warnings
check-sdn-list
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check-sdn-list
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint: wormhole-connect/src/AppRouter.tsx#L66
React Hook React.useEffect has missing dependencies: 'dispatch' and 'props.config'. Either include them or remove the dependency array
lint: wormhole-connect/src/AppRouter.tsx#L86
React Hook useEffect has a missing dependency: 'routeContext'. Either include it or remove the dependency array
lint: wormhole-connect/src/components/DemoApp/index.tsx#L148
React Hook useEffect has missing dependencies: 'customConfigInput', 'customConfigNonce', and 'isLoadingCustomConfig'. Either include them or remove the dependency array. You can also do a functional update 'setCustomConfigNonce(c => ...)' if you only need 'customConfigNonce' in the 'setCustomConfigNonce' call
lint: wormhole-connect/src/components/Modal.tsx#L76
React Hook useEffect has a missing dependency: 'onClose'. Either include it or remove the dependency array. If 'onClose' changes too often, find the parent component that defines it and wrap that definition in useCallback
lint: wormhole-connect/src/utils/wallet/index.ts#L156
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
lint: wormhole-connect/src/views/TxSearch.tsx#L156
React Hook useCallback has a missing dependency: 'search'. Either include it or remove the dependency array
lint: wormhole-connect/src/views/v2/Bridge/AmountInput/index.tsx#L58
React Hook useCallback has a missing dependency: 'defferedOnChange'. Either include it or remove the dependency array
lint: wormhole-connect/src/views/v2/Bridge/AmountInput/index.tsx#L167
React Hook useMemo has missing dependencies: 'classes.balance' and 'isFetching'. Either include them or remove the dependency array
lint: wormhole-connect/src/views/v2/Bridge/AmountInput/index.tsx#L187
React Hook useMemo has a missing dependency: 'dispatch'. Either include it or remove the dependency array
lint: wormhole-connect/src/views/v2/Bridge/AmountInput/index.tsx#L191
React Hook useCallback has a missing dependency: 'dispatch'. Either include it or remove the dependency array
build-hosted
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-library
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check-token-list
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/