Fix weird bug with wrong cache of icon
This commit is contained in:
parent
9cac63c37d
commit
0386357688
|
@ -31,7 +31,8 @@ const SVGICon = moize(
|
|||
{
|
||||
isShallowEqual: true,
|
||||
maxSize: Object.keys(ICONS).length,
|
||||
matchesArg: (cacheKeyArg, keyArg) => cacheKeyArg.icon === keyArg.icon,
|
||||
matchesArg: (cacheKeyArg, keyArg) =>
|
||||
cacheKeyArg.icon === keyArg.icon && cacheKeyArg.body === keyArg.body,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue