baublet/w8mngr

View on GitHub
client/helpers/useEvents.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function eventService has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function eventService() {
  const listeners = new Map<keyof UIEvents, Map<string, Function>>();

  return () => ({
    fire: <T extends keyof UIEvents>(event: T, payload?: UIEvents[T]) => {
Severity: Minor
Found in client/helpers/useEvents.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status