-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
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
docs(examples): ✏️ how to build a Todos
app
#490
Conversation
46c1dc5
to
facc62b
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #490 +/- ##
==========================================
- Coverage 85.29% 85.29% -0.01%
==========================================
Files 177 177
Lines 24267 24271 +4
==========================================
+ Hits 20699 20702 +3
- Misses 3568 3569 +1 ☔ View full report in Codecov by Sentry. |
d8df2a7
to
2101781
Compare
2101781
to
36acfa7
Compare
36acfa7
to
5e2251d
Compare
5e2251d
to
0e73884
Compare
41b6130
to
d3878b9
Compare
0443443
to
3c4c7f6
Compare
docs/zh/实践:Todos 应用/非侵入式开发.md
Outdated
|
||
同时对 `todos` 的变更进行了监听,并每隔 5 秒钟将 `todos` 的变更保存到磁盘上。当然,你的应用现在还没有任何交互,无法对 `todos` 进行修改,所以保存逻辑不会触发,但很快当你添加了交互,就能用的上这个自动保存的功能了。 | ||
|
||
注意到 `watch!($this;)` 中的 `;` 号了吗? 这是故意的,因为不想接收 `todos` 的变更结果,而只想知道它发生了变化,因为我们要在订阅函数中去读取它的最新值去保存。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos: watch!($this;)
-> watch!(todos;)
3c4c7f6
to
6ed94ea
Compare
No description provided.