Fixing exhaustive-deps lint errors for hooks #1467
Annotations
2 errors and 11 warnings
Run npm run lint:ci:
wormhole-connect/src/hooks/useAvailableWallets.ts#L74
React Hook useEffect has a missing dependency: 'props.chain'. Either include it or remove the dependency array
|
Run npm run lint:ci
Process completed with exit code 1.
|
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/
|
Run npm run lint:ci:
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
|
Run npm run lint:ci:
wormhole-connect/src/AppRouter.tsx#L86
React Hook useEffect has a missing dependency: 'routeContext'. Either include it or remove the dependency array
|
Run npm run lint:ci:
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
|
Run npm run lint:ci:
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
|
Run npm run lint:ci:
wormhole-connect/src/hooks/useAvailableWallets.ts#L74
React Hook useEffect has a missing dependency: 'props.chain'. Either include it or remove the dependency array
|
Run npm run lint:ci:
wormhole-connect/src/utils/wallet/index.ts#L156
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
|
Run npm run lint:ci:
wormhole-connect/src/views/TxSearch.tsx#L156
React Hook useCallback has a missing dependency: 'search'. Either include it or remove the dependency array
|
Run npm run lint:ci:
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
|
Run npm run lint:ci:
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
|
Run npm run lint:ci:
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
|
Loading