Skip to content

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Oct 3, 2025

The logic for finding expressions in if statement branches was wrong causing type inference to fail with this snippet:

input {
    type: if true { "one" } else if true { "two" } else { "three" },
}

This PR fixes that issue.

Fixes #4720

@ealmloff ealmloff requested a review from a team as a code owner October 3, 2025 17:00
@ealmloff ealmloff added bug Something isn't working rsx Related to rsx or the dioxus-rsx crate labels Oct 3, 2025
@jkelleyrtp jkelleyrtp merged commit c709c41 into DioxusLabs:main Oct 4, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rsx Related to rsx or the dioxus-rsx crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E0283 trait ambiguity when using chained conditional &str in rsx! attributes
2 participants