Skip to content

fetchData not wrapped in useCallback in GitGraphView #209

@fatihkan

Description

@fatihkan

Bug Description

In GitGraphView.tsx:29, fetchData is defined inline and used in a useEffect dependency. This causes unnecessary re-renders and re-fetches on every render.

Location

creedflow-desktop/src/components/git/GitGraphView.tsx:29

Severity

Low — Performance issue, not functional.

Steps to Fix

  1. Wrap fetchData in useCallback with proper dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendReact/TypeScript frontendperformancePerformance optimizationv1.7.0Target: v1.7.0 release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions