Skip to content

feat: integrate TanStack React Query for auth mutations#332

Merged
yusuftomilola merged 1 commit intoDistinctCodes:mainfrom
anumukul:feat/integrate-react-query
Oct 2, 2025
Merged

feat: integrate TanStack React Query for auth mutations#332
yusuftomilola merged 1 commit intoDistinctCodes:mainfrom
anumukul:feat/integrate-react-query

Conversation

@anumukul
Copy link
Contributor

@anumukul anumukul commented Oct 2, 2025

Description

This PR integrates TanStack React Query for data fetching and state management, focusing on authentication mutations as outlined in the issue.

Changes

  • Set up QueryClientProvider with Providers component
  • Create centralized mutation keys in lib/query/keys.ts
  • Implement useRegisterMutation and useLoginMutation hooks
  • Add comprehensive TypeScript types for auth flows
  • Configure API client with normalized error handling
  • Enable React Query DevTools for development
  • Update root layout to include query provider

Closes #312

- Set up QueryClientProvider with Providers component
- Create centralized mutation keys in lib/query/keys.ts
- Implement useRegisterMutation and useLoginMutation hooks
- Add comprehensive TypeScript types for auth flows
- Configure API client with normalized error handling
- Enable React Query DevTools for development
- Update root layout to include query provider
@vercel
Copy link

vercel bot commented Oct 2, 2025

@anumukul is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@anumukul
Copy link
Contributor Author

anumukul commented Oct 2, 2025

Please review my PR @yusuftomilola

Copy link
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution

@yusuftomilola yusuftomilola merged commit aac2ed5 into DistinctCodes:main Oct 2, 2025
4 of 5 checks passed
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.

FRONTEND: Setup TanStack React Query Provider with Auth Mutations

2 participants