Skip to content

Reactive object is marked as raw by defineExpose #13333

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

Closed
milliemole opened this issue May 16, 2025 · 1 comment
Closed

Reactive object is marked as raw by defineExpose #13333

milliemole opened this issue May 16, 2025 · 1 comment
Labels
can't reproduce need more info Further information is requested

Comments

@milliemole
Copy link

milliemole commented May 16, 2025

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.

@KazariEX
Copy link
Member

The playground seems invalid.

@edison1105 edison1105 added can't reproduce need more info Further information is requested labels May 16, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
can't reproduce need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants