refactor: extract BatchFontStore into new FetchFontsByIds feature
The byId font fetch was a verb-oriented capability with a single consumer driven by a feature need (materializing comparison picks). That shape belongs at the feature layer, not on the entity. Move: - entities/Font/model/store/batchFontStore -> features/FetchFontsByIds/model/store/fontsByIdsStore - Class BatchFontStore -> FontsByIdsStore entities/Font retains the transport primitives (fetchFontsByIds, seedFontCache) and the keyspace (fontKeys); the feature wraps them in the reactive store. comparisonStore now imports FontsByIdsStore from the new feature. The proxy API is imported via direct path so vi.spyOn on the source module still observes the call.
This commit is contained in:
1 parent
df59dfda02
commit
07d044f4d6
8 files changed
+37
-42
No files matched your search
@@ -9,6 +9,7 @@ export {
|
||||
fetchFontsByIds,
|
||||
fetchProxyFontById,
|
||||
fetchProxyFonts,
|
||||
seedFontCache,
|
||||
} from './proxy/proxyFonts';
|
||||
export type {
|
||||
ProxyFontsParams,
|
||||
|
||||
Reference in new issue
Block a user