fix bug in protected routes components #507
Annotations
2 errors and 2 warnings
|
build
Process completed with exit code 1.
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build:
src/components/ProtectedRoute.tsx#L18
The 'fetchUserProfile' function makes the dependencies of useEffect Hook (at line 47) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'fetchUserProfile' in its own useCallback() Hook
|