feature/unified-tanstack-query #36

Merged
ilia merged 8 commits from feature/unified-tanstack-query into main 2026-04-16 04:53:29 +00:00
Owner

Utilize tanstack query for every request

Utilize tanstack query for every request
ilia added 8 commits 2026-04-16 04:53:23 +00:00
- queryKeys: add mutation-safety test for batch(), key hierarchy tests
  (list/batch/detail keys rooted in their parent base keys), and
  unique-key test for different detail IDs
- BaseQueryStore: add initial-state test (data undefined, isError false
  before any fetch resolves)
- BatchFontStore: add FontResponseError type assertion on malformed
  response, null error assertion on success, and setIds([]) disables
  query and returns empty fonts without triggering a fetch
Replace hand-rolled async fetching (fetchFontsByIds + isRestoring flag)
with BatchFontStore backed by TanStack Query. Three reactive effects
handle batch sync, CSS font loading, and default-font fallback.
isLoading now derives from batchStore.isLoading + fontsReady.
fix(BaseQueryStore): use QueryObserverOptions instead of QueryOptions
All checks were successful
Workflow / build (pull_request) Successful in 58s
Workflow / publish (pull_request) Has been skipped
0a489a8adc
QueryOptions has queryKey as optional; QueryObserverOptions requires it,
matching what QueryObserver.constructor and setOptions actually expect.
ilia merged commit 46d0d887b1 into main 2026-04-16 04:53:29 +00:00
ilia deleted branch feature/unified-tanstack-query 2026-04-16 04:53:30 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: glyphdiff.com/frontend-svelte#36