-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add conversion from UseStateSetter
& UseReducerDispatcher
to a Callback
#3519
Conversation
Benchmark - coreYew Master
Pull Request
|
Visit the preview URL for this PR (updated for commit 202a098): https://yew-rs-api--pr3519-dispatcher2callback-cec6nvh0.web.app (expires Sat, 11 Nov 2023 22:18:57 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Benchmark - SSRYew Master
Pull Request
|
Size Comparison
✅ None of the examples has changed their size significantly. |
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 like this change, helpful convince methods are great!
Description
Implements #3510 by adding
UseStateSetter::to_callback
&UseReducerDispatcher::to_callback
methods andFrom
/IntoPropValue
implementations to do the same thing as the methods but without cloning.Checklist