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
比如
data: { arr: [] }
create(store,{ data: { arr: null } })
当arr添加元素后退出该页面,再进来之前添加的元素还在,不会重置为初始值 这是正常现象吗
ps:我知道arr放在页面的data中就行了,可我想用diff,只放页面data中更新时就不会经过diff了
The text was updated successfully, but these errors were encountered:
正常,不会重置。要重置请手动重置(onShow onHide什么的)
Sorry, something went wrong.
No branches or pull requests
比如
当arr添加元素后退出该页面,再进来之前添加的元素还在,不会重置为初始值
这是正常现象吗
详细代码片段:https://developers.weixin.qq.com/s/LJwbWTmi7M35
ps:我知道arr放在页面的data中就行了,可我想用diff,只放页面data中更新时就不会经过diff了
The text was updated successfully, but these errors were encountered: