Vizzuality/landgriffon

View on GitHub
client/src/hooks/socket/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useSocket has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useSocket = (
  events: { [key: string]: (...args: unknown[]) => void } = {},
  options?: SocketOptions,
) => {
  const socketRef = useRef<Socket | undefined>(undefined);
Severity: Minor
Found in client/src/hooks/socket/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status