-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add send_stream method for Scope #2619
Conversation
packages/yew/Cargo.toml
Outdated
@@ -92,6 +92,7 @@ hydration = ["csr"] | |||
trace_hydration = ["hydration"] | |||
doc_test = ["csr", "hydration", "ssr"] | |||
wasm_test = ["csr", "hydration", "ssr"] | |||
nightly = ["futures"] |
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.
futures::stream
is not nightly?
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.
But AsyncIterator
is. Does someone know about the relation of the futures
library to the std lib and if their traits will somehow magically migrate to std::async_iter::AsyncIterator
or be compatible?
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.
In a future release of futures, they may choose to either impose a blank implementation of Stream for any type that implements AsyncIterator or make it a type alias.
But this does not matter at the moment as both tokio
and futures
point to futures::Stream
and you need StreamExt
to poll a stream.
Visit the preview URL for this PR (updated for commit 7239dd6): https://yew-rs-api--pr2619-send-stream-ssmlbfab.web.app (expires Sun, 04 Sep 2022 17:55:27 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Size Comparison
✅ None of the examples has changed their size significantly. |
@laizy I went ahead and did it, hope that's okay with you |
# Conflicts: # packages/yew/Cargo.toml # packages/yew/src/html/component/scope.rs
Benchmark - SSRYew Master
Pull Request
|
Description
Fixes #2405
Checklist
cargo make pr-flow