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
export default { props: { filter: { type: Object, default: function() { return { c1: 'c1', } }, }, }, setup(props) { console.log('props is: ', isRef(props), isReactive(props)) watch(props, () => { // error console.log(props) } } }
beta11: props is: false true beta14: props is: false false // watch --> error
The text was updated successfully, but these errors were encountered:
What's the error you have?
Sorry, something went wrong.
the props argument should be detected as a reactive, but isn't.
props
That's because we use ob do detect that, and the props argument isn't a real Vue.observable, it's "faked":
composition-api/src/mixin.ts
Lines 85 to 86 in 3a1d992
...and therefore has no ob and is not detected as a reactive object by isReactive()
isReactive()
antfu
Successfully merging a pull request may close this issue.
beta11: props is: false true
beta14: props is: false false // watch --> error
The text was updated successfully, but these errors were encountered: