Skip to content

Expose the region map itemId in the shared lexicon hook #623

Description

@Andreas-Garcia

useRegionGenreLexicon parses GET regions/map/genres/ using zRegionMapGenresResponse. RegionGenreLexiconEntry derives from that generated schema. Consume the grow-api client published by BehindTheMusicTree/grow-the-music-tree-api#716 and update the focused hook fixtures.

Done when parsing the response retains itemId for LOCAL:region-q10690 and QID entries, the public inferred type exposes itemId and uuid, and the existing hook loading/cache/error behavior is covered. Record the package version for the frontend consumer. Refs BehindTheMusicTree/infrastructure#650.

Activity

  1. Andreas-Garcia commented on Dec 5, 2026

    @Andreas-Garcia
    MemberAuthor

    Released in @behindthemusictree/app-kit@44.1.0 (npm latest, via #624). useRegionGenreLexicon now returns the named RegionGenreLexicon type, whose entries come from the consumer's installed grow-api and include itemId. Peer floor: @behindthemusictree/grow-api >=0.1.0-next.17 <0.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions