Skip to content
Advertisement

Tag: data-binding

$emit executes before computed

I’m trying to emit a prop that I modify. I can do that directly with the prop and it works but I get a Vue Warn: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders So I tried to put the prop in a computed, but the emit executes before the computed is

Advertisement