This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
fix: computed property write operation warning on just page componentย #802
Open
Description
๐ 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):
const myComputed = computed(() => {
return [{ item: 'a' }, { item: 'b' }].map(item => item);
});
return { myComputed }
If not return in the setup() function, then not show the warning message....
โน๏ธ Additional context
In the options API, that working fine.