What is the recommended approach to avoid expensive computations running on every render in Vue?
-
A
Place the logic in a method
-
B
Use computed() to cache the result until reactive dependencies change
-
C
Use a watcher with immediate: true
-
D
Run the logic in onMounted() and store the result in data