-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Test cases to add. Mutating a reactive parent. #2
Comments
@Lee182 This is not how you use it, instead of const refBlocking = ref(state.settings.blocking) You should do const refBlocking = toRef(state.settings, 'blocking') See more on Vue 3's caveat. Thanks |
Tried
|
In my project base I've got round it using watchEffect. I just then had to mannually track changes which I know from reading the docs which watch will track changes and call the callback only on change. lazy is what the docs call this behaviour.
|
Just added these test cases for when mutating a reactive parent. I ran into the second issue realising the ref which I created had been overwritten. Don't know if this warning should be added to the docs which "watchers to refs that have been overwritten at the parent level will not fire".
The text was updated successfully, but these errors were encountered: