Skip to content

[tuner E/#657] duplicate /api/settings fetch per song:ready (auto-open + badge cue) #680

Description

@byrongamatos

Found in review of #657.

P3. On every song:ready, both the tuner auto-open path (_coveredByPlayerInstrument) and the new badge cue (coverageReport) call _playerTuning(), each fetching /api/settings. Avoidable churn, and the two reads can disagree if settings change between them.

Fix: memoize _playerTuning() with a short-lived / in-flight-promise cache invalidated on instrument:changed, or compute one coverage report per song-ready and share it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions