File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ export function trackRefValue(ref: RefBase<any>) {
53
53
}
54
54
}
55
55
56
- export function triggerRefValue ( ref : RefBase < any > , computedToAskDirty : ComputedRefImpl < any > | undefined , newVal ?: any ) {
56
+ export function triggerRefValue (
57
+ ref : RefBase < any > ,
58
+ computedToAskDirty : ComputedRefImpl < any > | undefined ,
59
+ newVal ?: any
60
+ ) {
57
61
ref = toRaw ( ref )
58
62
const dep = ref . dep
59
63
if ( dep ) {
@@ -187,7 +191,7 @@ class RefImpl<T> {
187
191
* @see {@link https://vuejs.org/api/reactivity-advanced.html#triggerref }
188
192
*/
189
193
export function triggerRef ( ref : Ref ) {
190
- triggerRefValue ( ref , __DEV__ ? ref . value : void 0 )
194
+ triggerRefValue ( ref , undefined , __DEV__ ? ref . value : void 0 )
191
195
}
192
196
193
197
export type MaybeRef < T = any > = T | Ref < T >
You can’t perform that action at this time.
0 commit comments