Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add taxonomy detail page #3

Conversation

rpenido
Copy link
Member

@rpenido rpenido commented Oct 19, 2023

TEMP PR

/**
* @returns {import("../types.mjs").UseQueryResult}
*/
const useTaxonomyListData = () => (
useQuery({
queryKey: ['taxonomyList'],
queryFn: () => getAuthenticatedHttpClient().get(getTaxonomyListApiUrl)
.then(camelCaseObject),
.then(camelCaseObject).then(({ data }) => data),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rpenido I think you need to change also the type that this function returns. You can run the types checks with npm run types

@rpenido rpenido force-pushed the rpenido/fal-3529-bare-bones-taxonomy-detail-page branch from 72bda40 to 2520d22 Compare October 20, 2023 18:29
@rpenido rpenido closed this Oct 20, 2023
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.

2 participants