Skip to content

Commit

Permalink
feat: export hook
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Mar 29, 2022
1 parent c0bfa0f commit e9c591a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/config/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export const buildItemValidationAndReviewsKey = (id: UUID) => [
'itemValidationAndReviews',
];

export const HOOK_KEYS = {
buildItemValidationAndReviewsKey,
}

export const MUTATION_KEYS = {
POST_ITEM: 'postItem',
EDIT_ITEM: 'editItem',
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export { default as configureQueryClient } from './queryClient';
export * as Api from './api';
export * as routines from './routines';
export { MUTATION_KEYS } from './config/keys';
export { API_ROUTES } from './api/routes';
export { HOOK_KEYS } from './config/keys';
export { API_ROUTES } from './api/routes';

0 comments on commit e9c591a

Please sign in to comment.