Skip to content

refactor(app): load sync state through TanStack Query#23792

Merged
Brendonovich merged 3 commits intodevfrom
feat/tanstack-query-config-options
Apr 28, 2026
Merged

refactor(app): load sync state through TanStack Query#23792
Brendonovich merged 3 commits intodevfrom
feat/tanstack-query-config-options

Conversation

@Brendonovich
Copy link
Copy Markdown
Member

@Brendonovich Brendonovich commented Apr 22, 2026

Summary

  • Move global and per-project sync loading onto TanStack Query so config, providers, paths, MCP status, and LSP status come from shared queries.
  • Refetch the shared MCP query after connect/disconnect instead of manually reloading MCP state in each UI surface.
  • Disable automatic TanStack Query refetch triggers so these sync queries only rerun when explicitly requested.

Why

The branch is primarily about consolidating app sync/bootstrap state around TanStack Query and removing duplicate MCP loading logic. The query client defaults keep those shared queries from refetching on mount, focus, or reconnect and causing extra status requests.

@Brendonovich Brendonovich force-pushed the feat/tanstack-query-config-options branch from 54b0535 to 8f9fa6e Compare April 22, 2026 07:34
@Brendonovich Brendonovich changed the title feat(app): configure TanStack Query client with default options refactor(app): load sync state through TanStack Query Apr 22, 2026
@Brendonovich Brendonovich force-pushed the feat/tanstack-query-config-options branch 5 times, most recently from 552094b to e8f56ba Compare April 24, 2026 06:50
@thdxr
Copy link
Copy Markdown
Member

thdxr commented Apr 25, 2026

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Fetch failed

Please resolve this issue to include this PR in the next beta release.

Add defaultOptions to QueryClient to disable automatic refetching:
- refetchOnReconnect: false
- refetchOnMount: false
- refetchOnWindowFocus: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants