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

callback constructor for yewtil LinkFuture trait #1271

Closed
kellpossible opened this issue May 29, 2020 · 1 comment
Closed

callback constructor for yewtil LinkFuture trait #1271

kellpossible opened this issue May 29, 2020 · 1 comment
Labels
feature-request A feature request

Comments

@kellpossible
Copy link
Contributor

it would be nice to be able to have a callback constructor equivalent to ComponentLink::callback() which executes callbacks in a future with spawn_local. I have a proof of concept at kellpossible/coster@1f9006e#diff-e8709839a6bad6639c9bbaa6aea8db01R96 and it seems to work well for my purpose. Perhaps the new method could be called LinkFuture::callback_future().

@kellpossible kellpossible added the feature-request A feature request label May 29, 2020
kellpossible added a commit to kellpossible/yew that referenced this issue May 29, 2020
kellpossible added a commit to kellpossible/yew that referenced this issue May 30, 2020
jstarry pushed a commit that referenced this issue Jun 21, 2020
* initial implementation of #1271 callback constructor for FutureLink

* #1271 fix implementations to match function signature of trait

* #1271 fix failing build
@mc1098
Copy link
Contributor

mc1098 commented Aug 2, 2021

#1842 fixed this :)
Scope (ComponentLink) now has callback_future

@siku2 siku2 closed this as completed Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature request
Projects
None yet
Development

No branches or pull requests

3 participants