Skip to content

refactor(frontend): replace useAsyncTask with TanStack Query#33

Merged
ivanskv2000 merged 7 commits intomainfrom
feat/state-management
Feb 17, 2026
Merged

refactor(frontend): replace useAsyncTask with TanStack Query#33
ivanskv2000 merged 7 commits intomainfrom
feat/state-management

Conversation

@ivanskv2000
Copy link
Owner

✨ What’s Changed?

This pull request completes a refactor of the frontend's asynchronous state management. The custom useAsyncTask composable has been replaced with useQuery and useMutation hooks from TanStack Query.

  • Standardized Data Fetching: All asynchronous operations (login, signup, data import/export, seeding, etc.) now use a consistent, declarative pattern.
  • Improved State Management: Leverages TanStack Query's built-in handling for loading, error, and success states.
  • Code Deletion: The useAsyncTask.ts composable has been removed, simplifying the codebase.
  • Enhanced Reactivity: Mutations that change server data (e.g., import, seed, reset) now use queryClient.invalidateQueries() to automatically refetch stale data and keep the UI in sync across the application.

Affected Components:

  • All module pages, e. g. EventCreatePage.vue, EventDetailsPage.vue, EventsPage.vue
  • LoginForm.vue, SignupForm.vue
  • Switchboard panels: ResetPanel.vue, SeedPanel.vue, ImportPanel.vue, ExportPanel.vue
  • SwaggerExportModal.vue

📂 Scope

  • frontend
  • backend
  • common/shared
  • CI/config

@sonarqubecloud
Copy link

@ivanskv2000 ivanskv2000 merged commit 91c4dab into main Feb 17, 2026
4 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.

1 participant

Comments