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 committed 2026-04-15 22:25:34 +03:00
1 parent 10f4781a67
commit adaa6d7648
3 files changed
+159 -590

No files matched your search

+3
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,