Optimizing your Vue App Using v-once and v-memoby@smpnjn
329 reads

Optimizing your Vue App Using v-once and v-memo

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Vue is like any other tool we use on the web - your mileage will vary depending on how you use it. If you write poorly optimized code, you'll still get a slow website. Today we'll be looking at how we can optimise performance using two little-known Vue HTML attributes known as `v-once` and v-memo. Both of these allow us to optimize when a component or component tree is re-rendered. V-once can be used pretty much anywhere - including within `for` loops - making it universally useful in Vue.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Optimizing your Vue App Using v-once and v-memo
Johnny Simpson HackerNoon profile picture

@smpnjn

Johnny Simpson

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa