Skip to content

Commit 1cdac44

Browse files
committed
Super simple almost-perfect unique cache key generation that is extremely cheap
1 parent c54b793 commit 1cdac44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
const CACHE = {};
1515

1616
export default function html(statics) {
17-
const key = statics.join(statics);
17+
const key = statics;
1818

1919
const tpl = CACHE[key] || (CACHE[key] = build(statics));
2020
// eslint-disable-next-line prefer-rest-params

0 commit comments

Comments
 (0)