@vuepress/client
Advanced tools
Comparing version 2.0.0-alpha.20 to 2.0.0-alpha.22
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-alpha.22](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2021-02-10) | ||
### Bug Fixes | ||
* **client:** only watch route path to update head ([3174f5a](https://github.com/vuepress/vuepress-next/commit/3174f5a676d95943df256b2be31227eb844d0144)) | ||
# [2.0.0-alpha.20](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2021-02-04) | ||
@@ -8,0 +19,0 @@ |
import { onMounted, ref, useSSRContext, watch } from 'vue'; | ||
import { useRoute } from 'vue-router'; | ||
import { isPlainObject, isString } from '@vuepress/shared'; | ||
@@ -55,2 +56,3 @@ import { usePageHead } from './pageHead'; | ||
export const useUpdateHead = () => { | ||
const route = useRoute(); | ||
const head = usePageHead(); | ||
@@ -97,5 +99,5 @@ const lang = usePageLang(); | ||
updateHead(); | ||
watch([head, lang], () => updateHead()); | ||
watch(() => route.path, () => updateHead()); | ||
}); | ||
}; | ||
//# sourceMappingURL=updateHead.js.map |
{ | ||
"name": "@vuepress/client", | ||
"version": "2.0.0-alpha.20", | ||
"version": "2.0.0-alpha.22", | ||
"description": "Client package of VuePress", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5c80ff3d24e4303734c87626b862ea04ff441ffa" | ||
"gitHead": "35b8d3f454cc99f57f5113357e06861d36414ca4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69176
826