-
-
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
use_bridge
hook for agents
#2125
Conversation
The clippy error is solved in #2126. |
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.
I love the idea of having a dedicated hook for connecting to agents.
Could you also add documentation for this new hook?
In website/docs/concepts/function-components/pre-defined-hooks.md
I think the documentation of However, the docs for agents currently do not have any information on how to actually use them which is why I didn't add any documentation. |
@futursolo My view on this would be that having documentation, even if its in a not separate place would be good. |
@futursolo Further looking at the docs I see that under https://yew.rs/next/concepts/agents#bridges adding simple mention about this hook would probably be enough. |
Visit the preview URL for this PR (updated for commit bf75666): https://yew-rs--pr2125-use-bridge-vl5ko9gg.web.app (expires Fri, 19 Nov 2021 02:03:21 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Description
This PR adds a
use_bridge
hook toyew-agent
which does the following:Fixes #2112 (Partially)
Checklist
cargo make pr-flow