Skip to content

docs: tutorial: update outdated fetching data section#4127

Draft
shan-shaji wants to merge 3 commits intoyewstack:masterfrom
shan-shaji:fix/shan/issues/4083
Draft

docs: tutorial: update outdated fetching data section#4127
shan-shaji wants to merge 3 commits intoyewstack:masterfrom
shan-shaji:fix/shan/issues/4083

Conversation

@shan-shaji
Copy link
Copy Markdown

@shan-shaji shan-shaji commented Apr 10, 2026

Description

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.

Fixes #4083

Checklist

  • update next version docs.
  • update 0.22 version docs.
  • final cleanup.
  • update translations.
  • update 0.23 version docs.
  • I have reviewed my own code
  • I have added tests

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.
@dahneyajackson1-sfcjace
Copy link
Copy Markdown

Ye

…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.
@shan-shaji shan-shaji force-pushed the fix/shan/issues/4083 branch from f883fc5 to 8f3bd0e Compare April 19, 2026 14:52
@shan-shaji shan-shaji force-pushed the fix/shan/issues/4083 branch from 8f3bd0e to a52c14a Compare April 19, 2026 15:06
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.

Yew.rs tutorial has outdated wasm-bindgen-futures pattern

2 participants