Skip to content

Properties defined on an Array are not unwrapped in template #1846

Closed
@ByScripts

Description

@ByScripts

Version

3.0.0-rc.5

Reproduction link

https://codepen.io/ByScripts/pen/YzqwEER

Steps to reproduce

<template>
    <pre>{{ obj.prop }}</pre>
    <pre>{{ arr.prop }}</pre>
</template>

<script>
    setup() {
        let obj = {};
        obj.prop = ref("obj prop");

        let arr = [];
        arr.prop = ref("arr prop");

        return reactive({ obj, arr });
    }
</script>

What is expected?

Both prop properties should be unwrapped

What is actually happening?

Only the object prop is unwrapped. The array prop is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions