Skip to content

fix: preserve type narrowing of useGetCustomMapInfo() read hook#174

Merged
achou11 merged 1 commit intomainfrom
ac/useGetCustomMapInfo-status
Apr 7, 2026
Merged

fix: preserve type narrowing of useGetCustomMapInfo() read hook#174
achou11 merged 1 commit intomainfrom
ac/useGetCustomMapInfo-status

Conversation

@achou11
Copy link
Copy Markdown
Member

@achou11 achou11 commented Apr 7, 2026

Fixes an issue where we were losing the type narrowing of React Query's useQuery due to object destructuring. Also exposes the status field so that checking against the different read states can be done more explicitly.

@achou11 achou11 changed the title fix: expose status field in useGetCustomMapInfo() read hook fix: preserve type narrowing of useGetCustomMapInfo() read hook Apr 7, 2026
@achou11 achou11 merged commit a849417 into main Apr 7, 2026
9 checks passed
@achou11 achou11 deleted the ac/useGetCustomMapInfo-status branch April 7, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant