Fixed Typecasting errors/warnings, and dependency versions #9
Annotations
1 error and 10 warnings
|
build-and-deploy
Process completed with exit code 1.
|
|
test:
app/screens/Profile.tsx#L64
The 'showPosts' function makes the dependencies of useEffect Hook (at line 71) change on every render. To fix this, wrap the definition of 'showPosts' in its own useCallback() Hook
|
|
test:
app/screens/Profile.tsx#L44
React Hook React.useCallback has a missing dependency: 'showPosts'. Either include it or remove the dependency array
|
|
test:
app/screens/Profile.tsx#L29
'setLikedPosts' is assigned a value but never used
|
|
test:
app/screens/Home.tsx#L103
React Hook useEffect has a missing dependency: 'loadPosts'. Either include it or remove the dependency array
|
|
test:
app/screens/Home.tsx#L80
The 'loadPosts' function makes the dependencies of useCallback Hook (at line 46) change on every render. To fix this, wrap the definition of 'loadPosts' in its own useCallback() Hook
|
|
test:
app/screens/CommentSection.tsx#L85
The 'loadComments' function makes the dependencies of useEffect Hook (at line 120) change on every render. To fix this, wrap the definition of 'loadComments' in its own useCallback() Hook
|
|
test:
app/screens/CommentSection.tsx#L52
React Hook React.useCallback has a missing dependency: 'loadComments'. Either include it or remove the dependency array
|
|
test:
app/contexts/userContext.tsx#L2
'Timestamp' is defined but never used
|
|
test:
app/components/containers/post.tsx#L182
Expected an assignment or function call and instead saw an expression
|
|
test:
app/components/containers/post.tsx#L141
The 'getOP' function makes the dependencies of useEffect Hook (at line 68) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'getOP' in its own useCallback() Hook
|