Skip to content

Updated Frontend to use Query Service Files#243

Merged
naasanov merged 9 commits intomainfrom
vidur/query-service
Mar 25, 2026
Merged

Updated Frontend to use Query Service Files#243
naasanov merged 9 commits intomainfrom
vidur/query-service

Conversation

@VidurShah
Copy link
Copy Markdown
Collaborator

Previously, query hooks were defined within the components. For cleanliness, reusability, and proper layer abstraction, moved the definition of these queries to their own services in lib

Changes:

  • Created new query service files
  • Updated existing query service files
  • Updated component files to use query service files instead of direct query hooks

Closes #119

@VidurShah VidurShah changed the title Vidur/query service Updated Frontend to use Query Service Files Mar 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 3, 2026

Test Results Summary

464 tests  ±0   464 ✅ ±0   33s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 62e403b. ± Comparison against base commit 135de24.

♻️ This comment has been updated with latest results.

…etQueryData call before invalidate Queries to avoid overwrite issues
@naasanov naasanov mentioned this pull request Mar 4, 2026
8 tasks
Copy link
Copy Markdown
Collaborator

@naasanov naasanov left a comment

Choose a reason for hiding this comment

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

Looks great so far. Just missing some optimistic update opportunities and nice to haves with query key management. Lmk if you have any questions about expectations

Comment thread frontend/src/lib/api/student/student.queries.ts Outdated
Comment thread frontend/src/lib/api/party/admin-party.queries.ts Outdated
Comment thread frontend/src/lib/api/party/party.queries.ts Outdated
Comment thread frontend/src/lib/api/party/admin-party.queries.ts Outdated
Comment thread frontend/src/lib/api/student/student.queries.ts Outdated
Copy link
Copy Markdown
Collaborator

@naasanov naasanov left a comment

Choose a reason for hiding this comment

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

Merge conflicts

Copy link
Copy Markdown
Collaborator

@naasanov naasanov left a comment

Choose a reason for hiding this comment

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

I'm just going through all outstanding PRs. Just waiting on merge conflicts

Copy link
Copy Markdown
Collaborator

@naasanov naasanov left a comment

Choose a reason for hiding this comment

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

LGTM!

@naasanov naasanov merged commit 726da32 into main Mar 25, 2026
3 checks passed
@naasanov naasanov deleted the vidur/query-service branch March 25, 2026 05:29
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.

React Query Hook Services

2 participants