Skip to content

Reactive object is marked as raw by defineExpose #13333

Closed as not planned
Closed as not planned
@milliemole

Description

@milliemole

Vue version

3.5.14

Link to minimal reproduction

https://play.vuejs.org/#eNp9kd9LwzAQx/+VmJdOmC1j82V0A5WB+qCigi8BKe21y0yTkKS1UPq/e0ndj4exl5C77/eSz9319E7ruG2ALmlqc8O1IxZco9dM8lor40hPDJRTPLLc8RbIQEqjahJhUcQkk7mS1pHaVmTlnZPoEYRQ5EsZUVxF10cLdFpZKIJtfGvSM0l8KZNDMBZQcgmbYJz8+1FIkxENoTBwUGuROcCIkHQ7W/d9+H4Y0gSjkOVSN460N7UqQKwY9X9QkqCYJif1dEqdRbqSV/HOKolTCEiM5qrWXIB51Y4jPaNLEhSvZdjf73PIOdPAdJ/Pt5D/nMnvbOdzjL4ZsGBaYPSgucxU4EZ58/ECHd4PItI3At0XxHewSjSecbTdN7JA7BNfoH0Ku+Sy+rSbzoG0+6Y8qHcOwc8obvXhQutH3Hm8CHW4OpzidwvGv4kDnMe38WxBhz9gBskT

Steps to reproduce

No additional steps necessary.

What is expected?

The object passed to defineExpose should remain a reactive object, and not marked as raw.

What is actually happening?

The object is being marked as raw and losing its reactivity.

System Info

Any additional comments?

I believe has behaviour has always been present but has only become an issue in 3.5.14, caused by #12824 .

If this behaviour is intended, it's not mentioned in the defineExpose documentation that reactive objects should not be used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions