You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-side-effects-in-computed-properties.md
+49-4Lines changed: 49 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@
2
2
pageClass: rule-details
3
3
sidebarDepth: 0
4
4
title: vue/no-side-effects-in-computed-properties
5
-
description: disallow side effects in computed properties
5
+
description: disallow side effects in computed properties and functions
6
6
since: v3.6.0
7
7
---
8
8
# vue/no-side-effects-in-computed-properties
9
9
10
-
> disallow side effects in computed properties
10
+
> disallow side effects in computed properties and functions
11
11
12
12
-:gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
13
13
14
14
## :book: Rule Details
15
15
16
-
This rule is aimed at preventing the code which makes side effects in computed properties.
16
+
This rule is aimed at preventing the code which makes side effects in computed properties and functions.
17
17
18
-
It is considered a very bad practice to introduce side effects inside computed properties. It makes the code not predictable and hard to understand.
18
+
It is considered a very bad practice to introduce side effects inside computed properties and functions. It makes the code not predictable and hard to understand.
0 commit comments