We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
san-ssr@5.1.0在computed不响应inited操作数据行为
import {Component} from 'san'; class Demo extends Component { static template = /* html */ ` <div> 姓名为{{name}} </div> `; static computed = { name() { const firstname = this.data.get('firstname'); console.log('computing name ', firstname); return `${firstname}·jiang`; } }; initData() { return { firstname: 'xinxin', }; } inited() { // 操作state this.data.set('firstname', 'gege'); } } // 渲染结果diff // san-ssr@4.9.2: 姓名为gege·jiang ---- 与csr渲染结果一致,符合预期 // san-ssr@5.1.0: 姓名为xinxin·jiang ---- 与csr渲染结果不一致
Versions
The text was updated successfully, but these errors were encountered:
fix: revert "computed 应该在 inited 之前调用" #144
c5f0023
aa21455
2b80c02
chore(release): 5.2.0 [skip ci]
e729de4
# [5.2.0](v5.1.0...v5.2.0) (2022-04-18) ### Bug Fixes * revert "computed 应该在 inited 之前调用" [#144](#144) ([2b80c02](2b80c02)) * 根组件有 if 指令时,没有输出数据 [#146](#146) ([30b7f1c](30b7f1c)) ### Features * support [] while calling data methods ([30fd0dd](30fd0dd)), closes [#145](#145)
🎉 This issue has been resolved in version 5.2.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
san-ssr@5.1.0在computed不响应inited操作数据行为
Versions
The text was updated successfully, but these errors were encountered: