diff --git a/src/index.ts b/src/index.ts index bccab10..df92a6a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -356,7 +356,7 @@ export class Cache> { item.unmerge(style); if (item.changeId !== prevChangeId) { - this.sheet.splice(index, 1, item.getStyles()); + this.sheet[index] = item.getStyles(); this.changeId++; if (this.changes) this.changes.change(item, index, index); }