mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 00:30:33 +03:00
flip server check bool
This commit is contained in:
@@ -55,7 +55,7 @@ export default function VueMeta (Vue, options = {}) {
|
|||||||
// if computed $metaInfo exists, watch it for updates & trigger a refresh
|
// if computed $metaInfo exists, watch it for updates & trigger a refresh
|
||||||
// when it changes (i.e. automatically handle async actions that affect metaInfo)
|
// when it changes (i.e. automatically handle async actions that affect metaInfo)
|
||||||
// credit for this suggestion goes to [Sébastien Chopin](https://github.com/Atinux)
|
// credit for this suggestion goes to [Sébastien Chopin](https://github.com/Atinux)
|
||||||
if (this.$isServer && this.$metaInfo) {
|
if (!this.$isServer && this.$metaInfo) {
|
||||||
this.$watch('$metaInfo', () => {
|
this.$watch('$metaInfo', () => {
|
||||||
// batch potential DOM updates to prevent extraneous re-rendering
|
// batch potential DOM updates to prevent extraneous re-rendering
|
||||||
batchID = batchUpdate(batchID, () => this.$meta().refresh())
|
batchID = batchUpdate(batchID, () => this.$meta().refresh())
|
||||||
|
|||||||
Reference in New Issue
Block a user