Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add the generic
use_state
view to xilem-core.This would generalize and replace the current
UseState
view in the main xilem crate. The main benefit here is noArc
to hold the current state. This is still a WIP and is being ported from theremember
view in my UI crate.I think this has huge benefits as it would allow us to compose state at no runtime cost. For example, global app state could be replaced by small sections of state created with this view.