MCPcopy Create free account
hub / github.com/fontsource/fontsource / notify

Function notify

website/app/hooks/useIsFontLoaded.ts:67–71  ·  view source on GitHub ↗
(cacheKey: string)

Source from the content-addressed store, hash-verified

65};
66
67const notify = (cacheKey: string) => {
68 for (const callback of subscribers.get(cacheKey) ?? []) {
69 callback();
70 }
71};
72
73const triggerFontLoad = (cacheKey: string, fontFaces: FontFace[]) => {
74 if (fontStatusCache.has(cacheKey)) {

Callers 1

triggerFontLoadFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected