-
Notifications
You must be signed in to change notification settings - Fork 101
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
fix: computed property write operation warning on just page component #802
Comments
workaround: const myComputed = computed({
get() { return [{ item: 'a' }, { item: 'b' }].map(item => item); },
set() {}
}); |
this is unlikely to be related to this library and is probably a Vue core issue. |
@danielroe |
oh, that does sound more like it's an issue with nuxt however vue 2 is EOL (and so is Nuxt 2) so unfortunately I am not planning to take time to look further into this. (apologies!) I hope the workaround you provided will serve you well. π |
@danielroe |
π The bug
I got this warning on just page component.
π οΈ To reproduce
Steps to reproduce the behavior:
If define a computed property like this (array manipulate: map, find, filter etc):
If not return in the setup() function, then not show the warning message....
βΉοΈ Additional context
In the options API, that working fine.
The text was updated successfully, but these errors were encountered: