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
Unable to assign to Option<String>
and Option<Cow<'static, str>>
#1888
Comments
Option<String>
Option<String>
and Option<Cow<'static, str>>
I have the same issue when switching from |
@ctron, same issue when assign value to properties like (input) 'max', I just use 'value.to_string()', and it works now. Hope that can help. |
Yea, that works. But also clones. And doesn't work with I played around a little bit with the Yew code, and it looks to me the problem is the concept of Removing this in favor of |
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
I created a PR (#1895) which works fine for me, and doesn't seem to have any negative effects. |
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes yewstack#1888
This drops the "optional" conversion concept in favor of directly converting to `Option<T>`. fixes #1888
I'm also experiencing this issue updating from yew 0.17 to 0.18. |
Yea, I was hoping for a release of this too. Either 0.18 or 0.19. |
Problem
In Yew 0.17 the following code worked:
With Yew 0.18, this fails with:
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect to have a simple way to assign T to Option using the macro.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
0.18
,master
0.51.0
Questionnaire
The text was updated successfully, but these errors were encountered: