Skip to content

Medium: onComplete prop missing from BuildLogPanel SSE useEffect dependency array #14

@harsharajkumar

Description

@harsharajkumar

In BuildLogPanel.tsx:57-98, the SSE useEffect lists only [sessionId, apiUrl] as dependencies but calls onComplete inside the event handler. If the parent re-renders and passes a new onComplete reference before the build finishes, the handler will invoke the stale version of the callback, potentially operating on outdated state in the parent component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmediumShould fix soon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions