[BUG] TemplateLiteral expression cannot be used with event when use optimize mode. #728
Open
Description
🐛 Bug description
📝 Steps to reproduce
Reproduction Link (required):
https://github.com/zhiyuanzmj/vue-jsx-issue-728
The value prop does not respond correctly.
import { defineComponent, ref } from "vue";
const Comp = ({ value }) => <div>{value}</div>;
export default defineComponent(() => {
const foo = ref(0);
return () => <Comp onClick={() => foo.value++} value={`${foo.value}`} />;
});
🏞 Desired result
🚑 Other information
Need NODE_ENV=production
environment variable.
Metadata
Assignees
Labels
No labels