Skip to content

Conversation

@esimkowitz
Copy link
Contributor

@esimkowitz esimkowitz commented Oct 16, 2023

When mapping a Write struct in dioxus-signals, the new Write that is created cannot be dereferenced. This is because the default constraint for the Write struct ties the inner type to the type for the signal. When mapping the inner type to a new type, this constraint is broken. Explicitly separating the type constraints for the inner and the signal allows for dereferencing of the new mapped Write.

Copy link
Member

@jkelleyrtp jkelleyrtp left a comment

Choose a reason for hiding this comment

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

LGTM!

@esimkowitz esimkowitz changed the title Fix deref for Write struct in dioxus-signals Oct 16, 2023
@ealmloff ealmloff merged commit b1d6069 into DioxusLabs:master Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants