yasshi2525/RushHour

View on GitHub
client/src/common/model.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useModel has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useModel = (my?: UserInfo | null) => {
  const [state, dispatch] = useReducer(reducer, {
    completed: false,
    error: null,
    model: new GameModel({
Severity: Minor
Found in client/src/common/model.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status