File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
packages/vue-query-devtools/src Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/vue-query-devtools ' : patch
3+ ---
4+
5+ Fix Vue SSR devtools cleanup by only registering ` unmount() ` after ` mount() ` has run.
Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ watchEffect(() => {
3333
3434onMounted (() => {
3535 devtools .mount (div .value as HTMLElement )
36- })
37-
38- onScopeDispose (() => {
39- devtools .unmount ()
36+ onScopeDispose (() => {
37+ devtools .unmount ()
38+ })
4039})
4140 </script >
4241
Original file line number Diff line number Diff line change @@ -38,10 +38,9 @@ watchEffect(() => {
3838
3939onMounted (() => {
4040 devtools .mount (div .value as HTMLElement )
41- })
42-
43- onScopeDispose (() => {
44- devtools .unmount ()
41+ onScopeDispose (() => {
42+ devtools .unmount ()
43+ })
4544})
4645 </script >
4746
You can’t perform that action at this time.
0 commit comments