NAV-26645: Legger til en egen useFeatureToggles hook for feature toggles #289
pull_request.yaml
on: pull_request
Pull request
/
Pull request yarn
5m 17s
Annotations
10 warnings
|
Pull request / Pull request yarn:
src/frontend/komponenter/Saklinje/Meny/HenleggBehandling/ÅrsakFelt.tsx#L14
React Hook "useBehandlingContext" is called in function "ÅrsakFelt" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
|
Pull request / Pull request yarn:
src/frontend/komponenter/PdfVisningModal/PdfVisningModal.tsx#L34
React Hook useEffect has a missing dependency: 'onRequestOpen'. Either include it or remove the dependency array. If 'onRequestOpen' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
Pull request / Pull request yarn:
src/frontend/komponenter/MånedÅrInput/MånedÅrVelger.tsx#L57
React Hook useEffect has a missing dependency: 'onEndret'. Either include it or remove the dependency array. If 'onEndret' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
Pull request / Pull request yarn:
src/frontend/komponenter/Datovelger/DatovelgerForGammelSkjemaløsning.tsx#L54
React Hook useEffect has missing dependencies: 'onDateChange' and 'selectedDay'. Either include them or remove the dependency array. If 'onDateChange' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useTrackTidsbrukPåSide.ts#L48
React Hook useEffect has missing dependencies: 'behandling.behandlingId', 'behandling.kategori', 'behandling.resultat', 'behandling.status', 'behandling.stegTilstand', 'behandling.type', 'behandling.underkategori', 'behandling.årsak', 'fagsak.fagsakType', 'fagsak.id', 'fagsak.status', 'hentSaksbehandlerRolle', and 'sideId'. Either include them or remove the dependency array
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useSyncModiaContext.ts#L21
React Hook useEffect has missing dependencies: 'mutate' and 'toggles'. Either include them or remove the dependency array
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useScrollTilAnker.tsx#L42
React Hook useEffect has a missing dependency: 'scrollTilHash'. Either include it or remove the dependency array
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useScrollTilAnker.tsx#L28
React Hook useEffect has a missing dependency: 'scrollTilHash'. Either include it or remove the dependency array
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useDeepEffect.ts#L18
React Hook useEffect has missing dependencies: 'deps' and 'fn'. Either include them or remove the dependency array. If 'fn' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
Pull request / Pull request yarn:
src/frontend/hooks/useDeepEffect.ts#L18
React Hook useEffect was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
|