feat: added api connection and hooks #542
Annotations
12 errors and 10 warnings
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L18
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L17
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L17
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L16
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L16
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L10
Use an `interface` instead of a `type`
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L7
A record is preferred over an index signature
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L7
A record is preferred over an index signature
|
Static Analysis and Test | Node 20:
src/graphql/generated/graphql.ts#L4
A record is preferred over an index signature
|
Static Analysis and Test | Node 20:
src/contexts/api/apiContext.tsx#L5
Unexpected any. Specify a different type
|
Static Analysis and Test | Node 18
The operation was canceled.
|
Static Analysis and Test | Node 18
The strategy configuration was canceled because "ci._20" failed
|
Static Analysis and Test | Node 20:
src/components/login-modal/profile-form-view.tsx#L213
React Hook useCallback has missing dependencies: 'backgroundImagePreview', 'dispatch', 'onSuccess', 'profileImagePreview', 'sessionData?.profile?.metadata?.coverPicture?.optimized?.uri', and 'sessionData?.profile?.metadata?.picture?.optimized?.uri'. Either include them or remove the dependency array. If 'onSuccess' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Static Analysis and Test | Node 20:
src/components/login-modal/profile-form-view.tsx#L112
React Hook useEffect has a missing dependency: 'error'. Either include it or remove the dependency array
|
Static Analysis and Test | Node 20:
src/components/login-modal/modal.tsx#L93
React Hook useCallback has missing dependencies: 'acceptOrCreateInvitationForUser' and 'dispatch'. Either include them or remove the dependency array
|
Static Analysis and Test | Node 20:
src/components/login-modal/modal.tsx#L87
React Hook useEffect has missing dependencies: 'onClose' and 'w3'. Either include them or remove the dependency array. If 'onClose' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Static Analysis and Test | Node 20:
src/components/login-modal/modal.tsx#L56
React Hook useEffect has missing dependencies: 'dispatch' and 'w3'. Either include them or remove the dependency array
|
Static Analysis and Test | Node 20:
src/components/follow-unfollow-button.tsx#L68
React Hook useEffect has missing dependencies: 'getProfile' and 'profileId'. Either include them or remove the dependency array
|
Static Analysis and Test | Node 20:
src/components/follow-unfollow-button.tsx#L58
React Hook useEffect has missing dependencies: 'getProfile', 'profileId', and 'sessionData?.profile?.id'. Either include them or remove the dependency array
|
Static Analysis and Test | Node 20:
src/components/editor/toolbar.tsx#L7
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
Static Analysis and Test | Node 20:
src/App.tsx#L170
React Hook useEffect has missing dependencies: 'dispatch' and 'getNotifications'. Either include them or remove the dependency array
|
Static Analysis and Test | Node 20:
src/App.tsx#L162
React Hook useEffect has a missing dependency: 'watchEvent'. Either include it or remove the dependency array
|