store 中定义的方法不会自动更新 #2340
Unanswered
YY88Xu
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What problem is this solving
store 中定义的方法不会自动更新。
如果在 increment 方法中添加一行代码 console.log('log'); 不刷新页面的话,使用 increament 方法并不会打印 log,也就是新增的代码逻辑不能被实时更新到。
Proposed solution
希望 store 中的方法可以实时更新。
Describe alternatives you've considered
No response
Beta Was this translation helpful? Give feedback.
All reactions