Skip to content
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
@buglavecz

Description

@buglavecz

๐Ÿ› The bug
I got this warning on just page component.
image

๐Ÿ› ๏ธ 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions