Skip to content
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

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

M-Adoo
Copy link
Collaborator

@M-Adoo M-Adoo commented Nov 27, 2023

No description provided.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (152a2b4) 85.29% compared to head (3c4c7f6) 85.29%.
Report is 2 commits behind head on master.

❗ Current head 3c4c7f6 differs from pull request most recent head 6ed94ea. Consider uploading reports for the commit 6ed94ea to get more accurate results

Files Patch % Lines
core/src/widget.rs 75.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch 2 times, most recently from d8df2a7 to 2101781 Compare November 29, 2023 08:12
@M-Adoo M-Adoo marked this pull request as ready for review November 29, 2023 08:13
@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch from 2101781 to 36acfa7 Compare November 29, 2023 08:39
@M-Adoo M-Adoo enabled auto-merge November 29, 2023 09:12
@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch from 36acfa7 to 5e2251d Compare November 29, 2023 11:38
wjian23
wjian23 previously approved these changes Nov 30, 2023
@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch from 5e2251d to 0e73884 Compare December 1, 2023 07:22
@M-Adoo M-Adoo disabled auto-merge December 1, 2023 07:22
@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch 4 times, most recently from 41b6130 to d3878b9 Compare December 4, 2023 07:29
@M-Adoo M-Adoo enabled auto-merge December 5, 2023 07:59
@M-Adoo M-Adoo disabled auto-merge December 5, 2023 07:59
@M-Adoo M-Adoo force-pushed the docs-todos-tutorial branch 2 times, most recently from 0443443 to 3c4c7f6 Compare December 8, 2023 07:55
@M-Adoo M-Adoo enabled auto-merge December 8, 2023 07:56
thinkingjimmy
thinkingjimmy previously approved these changes Dec 13, 2023

同时对 `todos` 的变更进行了监听,并每隔 5 秒钟将 `todos` 的变更保存到磁盘上。当然,你的应用现在还没有任何交互,无法对 `todos` 进行修改,所以保存逻辑不会触发,但很快当你添加了交互,就能用的上这个自动保存的功能了。

注意到 `watch!($this;)` 中的 `;` 号了吗? 这是故意的,因为不想接收 `todos` 的变更结果,而只想知道它发生了变化,因为我们要在订阅函数中去读取它的最新值去保存。
Copy link
Contributor

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;)

@M-Adoo M-Adoo added this pull request to the merge queue Dec 19, 2023
Merged via the queue into master with commit 4b82114 Dec 19, 2023
5 checks passed
@M-Adoo M-Adoo deleted the docs-todos-tutorial branch December 19, 2023 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants