Skip to content

Commit

Permalink
Overwrite index on removal
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jan 17, 2024
1 parent 0d06770 commit acb8dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class Cache<T extends Container<any>> {
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);
}
Expand Down

0 comments on commit acb8dfb

Please sign in to comment.