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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user