Skip to content

fix: ReadStore from MappedMutSignal requires Lens: Readable#5607

Merged
ealmloff merged 2 commits into
DioxusLabs:mainfrom
MonaMayrhofer:fix-readstore
Jun 2, 2026
Merged

fix: ReadStore from MappedMutSignal requires Lens: Readable#5607
ealmloff merged 2 commits into
DioxusLabs:mainfrom
MonaMayrhofer:fix-readstore

Conversation

@MonaMayrhofer

@MonaMayrhofer MonaMayrhofer commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #5603

Please note that I am not well versed in the dioxus codebase.
Changing the bound on the From impl seems to work and compile for my use case, but I do not know if there are any deeper implications of changing that bound.

Also the body of the impl contains value.selector.map_writer - should this still be "map_writer" if the value is readable and not writable?

For now i have created the pull-request against v0.7 because that is where i could test in in the context of a bigger codebase, but i can change the base to be main if that is desired.

@MonaMayrhofer MonaMayrhofer requested a review from a team as a code owner June 2, 2026 10:06
@ealmloff ealmloff added stores bug Something isn't working labels Jun 2, 2026
@ealmloff ealmloff changed the base branch from v0.7 to main June 2, 2026 12:59
@ealmloff ealmloff changed the base branch from main to v0.7 June 2, 2026 12:59
@ealmloff

ealmloff commented Jun 2, 2026

Copy link
Copy Markdown
Member

Also the body of the impl contains value.selector.map_writer - should this still be "map_writer" if the value is readable and not writable?

Yes, that is right. We map the maximal version, but depending on the bounds it may only implement readable.

For now i have created the pull-request against v0.7 because that is where i could test in in the context of a bigger codebase, but i can change the base to be main if that is desired.

That would be great. We currently only have checks set up against the main branch. I tried to change the base branch, but it looks like you may need to rebase your changes

@MonaMayrhofer MonaMayrhofer changed the base branch from v0.7 to main June 2, 2026 13:22
@MonaMayrhofer

Copy link
Copy Markdown
Contributor Author

Alrighty :D

@ealmloff ealmloff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@ealmloff ealmloff merged commit 7afcd4e into DioxusLabs:main Jun 2, 2026
19 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 stores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReadStore::from requires that the underlying Lens is Writeable

2 participants