Skip to content

Commit 26a7d34

Browse files
authored
feat(computedEager): deprecate computedEager (#5034)
1 parent 4a28be9 commit 26a7d34

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/shared/computedEager/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ alias: eagerComputed
77

88
Eager computed without lazy evaluation.
99

10+
::: info
11+
This function will be removed in future version.
12+
:::
13+
1014
::: tip
1115
Note💡: If you are using Vue 3.4+, you can use `computed` right away, you no longer need this function.
1216
In Vue 3.4+, if the computed new value does not change, `computed`, `effect`, `watch`, `watchEffect`, `render` dependencies will not be triggered.

packages/shared/computedEager/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export type ComputedEagerOptions = WatchOptionsBase
99
export type ComputedEagerReturn<T = any> = Readonly<ShallowRef<T>>
1010

1111
/**
12+
*
13+
* @deprecated This function will be removed in future version.
14+
*
1215
* Note: If you are using Vue 3.4+, you can straight use computed instead.
1316
* Because in Vue 3.4+, if computed new value does not change,
1417
* computed, effect, watch, watchEffect, render dependencies will not be triggered.

0 commit comments

Comments
 (0)