New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Values not reactive?! #13
Comments
Hi; is there anything new about this? I found out that the problem happens to me if I directly go to a the specific url of a page, or if I reload it. But when the page is fully loaded from another link via vue-router, it's correctly changed. |
All tags are built head when the component is mounted. Important for rendering on the server side or even for Google which is now identifying tags head dynamic in SPA, the plugin even done to help the page SEO. But he had not yet seen the need to make it reactive already after the page loaded. |
But I will add a new feature the ability to check the tags you wish to reactive, hence solving this need, okay? Thank you for using the plugin and the feedback. |
That would be awesome. Thanks for the explanations, I'm looking forward for the update. This is the last major thing i need before putting my website online. |
Same here 😊 |
@ktquez Really looking forward to this feature. Hope it is released soon. |
This week! |
Production guys, follow the issue 17, to notify all of the improvements, okay. |
Why was this closed, so was #17 . And no hint abount that values is going to be reactive. I want it! |
@wonderbeyond It has been released since more than a month now, it's patched up. |
However, I found that without emitting // ...
head: {
title() {
return {
inner: `${this.product.name_abbr} ${this.product.code}`
}
},
},
route: {
data: function(transition) {
var code = this.$route.params.code;
var self = this;
return Promise.all([
loadProduct(code),
loadHisValues(code, {
ordering: 'tradedate',
ordering_direction: 'desc'
})
]).then(function(res) {
var product = res[0];
var values = res[1];
setTimeout(function () {
self.$emit('updateHead');
});
return {
product: product,
hisValues: values,
};
}).then(null, function(e) {
console.error('Error:', e);
});
},
},
// ... |
@wonderbeyond setTimeout(function () {
self.$emit('updateHead');
}, 1000); |
@ktquez Oh sorry, but you've misunderstood my meaning. |
I want to update the title and meta-tags after the page-content is loaded via REST-API, so the final values don't exist when the component is created.
Unfortunately, the meta-tags and title won't react to changes in the data-variables:
this.meta.myTitle
changes correctly in the vue-console, but nothing happens in the<title>
or<meta name="description">
The text was updated successfully, but these errors were encountered: