_Actually_ memoize static SVG rendering

This commit is contained in:
Danny McGee
2023-10-11 10:36:10 -04:00
parent a34f31751f
commit 617306a8a2
+5 -1
View File
@@ -53,9 +53,13 @@ function renderSvg(iconId: string) {
.map(([, attr, value]) => [attr, value])
);
return html`
const result = html`
<svg ${spread(attrs)}>
${unsafeSVG(body)}
</svg>
`;
RENDER_RESULTS.set(iconId, result);
return result;
}