also use emojiType as cache key for dynamic asset cache
This commit is contained in:
@@ -78,7 +78,7 @@ const loadDynamicAsset = (emojiType: EmojiType = "twemoji") => {
|
||||
}
|
||||
};
|
||||
return async (...args: Parameters<typeof fn>) => {
|
||||
const cacheKey = JSON.stringify(args);
|
||||
const cacheKey = JSON.stringify({ ...args, emojiType });
|
||||
const cachedFont = assetCache.get(cacheKey);
|
||||
if (cachedFont) {
|
||||
return cachedFont;
|
||||
|
||||
Reference in New Issue
Block a user