Skip to content

Improve dashboard tab performance with keepPreviousData and prefetching#73

Open
udarshcodes wants to merge 1 commit into
vicharanashala:mainfrom
udarshcodes:feature/dashboard-tab-prefetch
Open

Improve dashboard tab performance with keepPreviousData and prefetching#73
udarshcodes wants to merge 1 commit into
vicharanashala:mainfrom
udarshcodes:feature/dashboard-tab-prefetch

Conversation

@udarshcodes
Copy link
Copy Markdown
Contributor

Summary

  1. Improved dashboard tab switching performance for Trending, Recent, Unanswered, and Resolved.
  2. Kept the current query list visible while a new tab loads, reducing perceived lag.
  3. Added background prefetching for adjacent dashboard tabs.

What Changed

  1. Updated index.jsx
  2. Switched dashboard question loading to React Query useQuery
  3. Enabled keepPreviousData so old results remain during tab fetches
  4. Added prefetching for other dashboard tabs to make switching faster

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