Repositories: fix lint warning react-hooks/exhaustive-deps with adding useCallback hook #607
Annotations
10 warnings
Run lint check:
src/App.js#L17
React Hook useEffect has missing dependencies: 'hideGlobalFilter' and 'updateDocumentTitle'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/AWSSourcesSelect.js#L58
React Hook useEffect has missing dependencies: 'change' and 'sourceDetails?.aws?.account_id'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/ActivationKeys.js#L94
React Hook useEffect has missing dependencies: 'change' and 'isProd'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/AzureSourcesSelect.js#L52
React Hook useEffect has missing dependencies: 'change', 'sourceDetails?.azure?.subscription_id', and 'sourceDetails?.azure?.tenant_id'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/FileSystemConfigButtons.js#L20
React Hook useEffect contains a call to 'setHasErrors'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [getState, change] as a second argument to the useEffect Hook
|
Run lint check:
src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js#L103
React Hook useEffect has missing dependencies: 'change', 'hasCustomizations', and 'rows'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js#L126
React Hook useEffect has a missing dependency: 'getState'. Either include it or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/FileSystemConfiguration.js#L147
React Hook useEffect has missing dependencies: 'change' and 'input.name'. Either include them or remove the dependency array
|
Run lint check:
src/Components/CreateImageWizard/formComponents/MountPoint.js#L39
React Hook useEffect has a missing dependency: 'props.mountpoint'. Either include it or remove the dependency array. If 'setSuffix' needs the current value of 'props.mountpoint', you can also switch to useReducer instead of useState and read 'props.mountpoint' in the reducer
|
Run lint check:
src/Components/CreateImageWizard/formComponents/MountPoint.js#L53
React Hook useEffect has a missing dependency: 'props'. Either include it 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 useEffect call and refer to those specific props inside useEffect
|
The logs for this run have expired and are no longer available.
Loading