Skip to content

Use into_prop_value to convert str prop to Option<String>#2080

Merged
siku2 merged 1 commit into
yewstack:masterfrom
Xavientois:xavientois/optional-prop-with-base-props
Sep 24, 2021
Merged

Use into_prop_value to convert str prop to Option<String>#2080
siku2 merged 1 commit into
yewstack:masterfrom
Xavientois:xavientois/optional-prop-with-base-props

Conversation

@Xavientois
Copy link
Copy Markdown
Contributor

Description

Make code simpler and more robust by relying on the into_prop_value trait function for conversion instead of the Into trait.

Fixes #2034

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code
  • I have added tests

@mc1098 mc1098 added the A-yew-macro Area: The yew-macro crate label Sep 24, 2021
Copy link
Copy Markdown
Contributor

@mc1098 mc1098 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix :)

@siku2 siku2 merged commit 97498cd into yewstack:master Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-yew-macro Area: The yew-macro crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting optional props with base expr fails without Some(...)

3 participants