docs: tutorial: update outdated fetching data section#4141
docs: tutorial: update outdated fetching data section#4141shan-shaji wants to merge 9 commits intoyewstack:masterfrom
Conversation
Fetching data section of the tutorial page still mentioned using `wasm-bindgen-futures::spawn_local`. Updated the docs and examples to use `yew::platform::spawn_local` and the `use_future` hook instead.
…tions The wasm-bindgen-futures was still present in the docs, so removed it. Adding the delay to see the loading should have been a last section so moved it to the end. Removed the path and populated the same with the full link, as later in the docs to fix the cors issue we are asking the user to replace the full link with the path.
|
Hi @Madoshakalaka , Could you please check english the version? If it looks good i can translate it into other languages. |
|
Visit the preview URL for this PR (updated for commit 360d8d1): https://yew-rs--pr4141-fix-shan-docs-4083-3ozqxqsd.web.app (expires Fri, 08 May 2026 20:18:40 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
|
the App diff should also remove the stray if let block, since VideosFetcher is the new home for that rendering. In all three versions of index.mdx at the App-update code block, please add to the - lines: and re-tune the highlight ranges accordingly. you can now if somebody follows our tutorial they will get: with the video details rendered twice. |
|
Ahh, thanks for catching that. I will update it. |
Description
Fetching data section of the tutorial page still mentioned using
wasm-bindgen-futures::spawn_local. Updated the docs and examples to useyew::platform::spawn_localand theuse_futurehook instead.Fixes #4083
Checklist