Commit 90486ec 1 parent 4d18c9e commit 90486ec Copy full SHA for 90486ec
File tree 2 files changed +6
-5
lines changed
packages/reactive-vue/src/hooks
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
"version" : " 2.0.16" ,
3
3
"npmClient" : " yarn" ,
4
4
"useWorkspaces" : true ,
5
- "npmClientArgs" : [
6
- " --ignore-engines"
7
- ],
5
+ "npmClientArgs" : [" --ignore-engines" ],
8
6
"command" : {
9
7
"version" : {
10
8
"forcePublish" : true ,
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ export const useObserver = (options?: IObserverOptions) => {
13
13
tracker = null
14
14
}
15
15
}
16
+ const vmUpdate = ( ) => {
17
+ vm ?. proxy ?. $forceUpdate ( )
18
+ }
16
19
17
20
onBeforeUnmount ( disposeTracker )
18
21
@@ -27,9 +30,9 @@ export const useObserver = (options?: IObserverOptions) => {
27
30
const newTracker = ( ) => {
28
31
tracker = new Tracker ( ( ) => {
29
32
if ( options ?. scheduler && typeof options . scheduler === 'function' ) {
30
- options . scheduler ( update )
33
+ options . scheduler ( vmUpdate )
31
34
} else {
32
- update ( )
35
+ vmUpdate ( )
33
36
}
34
37
} )
35
38
}
You can’t perform that action at this time.
0 commit comments