feat: refactor ComparisonStore to use BatchFontStore

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.
This commit is contained in:
Ilia Mashkov
2026-04-15 22:25:34 +03:00
parent 10f4781a67
commit adaa6d7648
3 changed files with 159 additions and 590 deletions

View File

@@ -1,6 +1,9 @@
// Applied fonts manager
export { appliedFontsManager } from './appliedFontsStore/appliedFontsStore.svelte';
// Batch font store
export { BatchFontStore } from './batchFontStore.svelte';
// Single FontStore
export {
createFontStore,