Skip to content

Conversation

@ulemons
Copy link
Contributor

@ulemons ulemons commented Nov 25, 2025

Add TanStack Query Caching to Organization List Page

Overview

Implemented TanStack Query caching for the organization list page following the same pattern used in the member list page, improving performance by eliminating redundant API calls and providing better user experience through cached data.

Changes

Core Implementation

  • Added TanStack Query integration to organization-list-page.vue
  • Replaced direct API calls with cached queries using useQuery hook
  • Implemented reactive query keys for proper cache invalidation
  • Added staleTime configuration to prevent duplicate API calls also usefull for member-list-page.vue

Query Management

  • Created organizationsQueryKey for main organization listing
  • Created mergeSuggestionsQueryKey for merge suggestions count
  • Stabilized query keys to prevent unnecessary re-fetching during initialization
  • Added proper cache invalidation on project group changes

@ulemons ulemons changed the title feat: add fe cache for organizations api feat: add fe cache for organizations api (CM-796) Nov 25, 2025
@ulemons ulemons self-assigned this Nov 25, 2025
@ulemons ulemons added the Feature Created by Linear-GitHub Sync label Nov 25, 2025
@ulemons ulemons marked this pull request as ready for review November 25, 2025 14:12
@ulemons ulemons requested review from Sameh16 and gaspergrom and removed request for Sameh16 November 25, 2025 14:12
@ulemons ulemons force-pushed the feat/add-fe-cache-organizations-api branch from 4d55f2b to 327688f Compare November 25, 2025 16:22
@ulemons ulemons requested a review from gaspergrom November 25, 2025 16:29
@ulemons ulemons merged commit 79cacd7 into main Nov 26, 2025
12 checks passed
@ulemons ulemons deleted the feat/add-fe-cache-organizations-api branch November 26, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants