Skip to content

support use unReactivity data in Template #10110

@zhangshichun

Description

@zhangshichun

What problem does this feature solve?

for example in render function:

const a = 'Hello world unReactivity'

export default {
render(c){
return c(div,[a])
}
}

here the a is not a reactivity data,but when we use template,it seems that we must make a to be a reactivity data?sometimes is not in need.

What does the proposed API look like?

<template>
<div>
{{ a }}
</div>
</template>
<script>
export default {
unReactivity:{
a: 'Hello world unReactivity'
}
}
</script>

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