We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi everyone, I'm having an issue with rerender.
rerender
In the readme.md file, you provided a sample component options.
readme.md
const myComponentOptions = { data () { ... }, created () { ... }, render () { ... } }
However, my object does not have a render function. It's using a template, instead. Here's a sample:
render
template
const componentOptions = { data() { return { foo: 'bar' }; }, template: '<div>foo value is: {{ foo }}</div>' };
When I try to rerender it, an exception occurs because the render function is missing.
The reload method is working perfectly fine though.
reload
Here's a repro: https://github.com/BrightSoul/vue-hot-reload-api-issue-repro
I am aware that an easy solution to this is to just rewrite my component options like this:
const componentOptions = { data() { return { foo: 'bar' }; }, ...Vue.compile('<div>foo value is: {{ foo }}</div>') };
But I was wondering whether the difference in behavior between reload and rerender is intended or not.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi everyone, I'm having an issue with
rerender
.In the
readme.md
file, you provided a sample component options.However, my object does not have a
render
function. It's using atemplate
, instead. Here's a sample:When I try to
rerender
it, an exception occurs because therender
function is missing.The
reload
method is working perfectly fine though.Here's a repro:
https://github.com/BrightSoul/vue-hot-reload-api-issue-repro
I am aware that an easy solution to this is to just rewrite my component options like this:
But I was wondering whether the difference in behavior between
reload
andrerender
is intended or not.The text was updated successfully, but these errors were encountered: