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

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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions