Skip to content

Instantly share code, notes, and snippets.

@przemyslawjanpietrzak
Created October 9, 2021 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przemyslawjanpietrzak/0cab816b7a99521fc411dad332cd0aa4 to your computer and use it in GitHub Desktop.
Save przemyslawjanpietrzak/0cab816b7a99521fc411dad332cd0aa4 to your computer and use it in GitHub Desktop.
Improve $destroy performance in Vue #2
computed: {
mappedItems() {
return this.items.map(item => ({
...item,
a: getA(item),
b: getB(item),
c: getC(item),
d: getD(item),
e: getE(item),
});
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment