Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add View::State and IdPath to xilem_masonry #218

Closed

Conversation

Philipp-M
Copy link
Contributor

Draft, to avoid (further) duplicate work.

Basically adds View::State back to xilem_masonry and the id path, similar to how it was done before (i.e. distinct ids, which may be relevant for a robust async context).

This is not yet 100% done (issues with changing AnyView currently).

Also renames the generic params State and T to AppState for clear distinction to View::State

@Philipp-M
Copy link
Contributor Author

Closing in favor of #220

@Philipp-M Philipp-M closed this Apr 26, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 26, 2024
Alternative to #218

The version of viewsequence added in #205 is robust for all properties
supported in that version. However, it would be incompatible with future
expansions to the Xilem model, in particular async wiring.

In this PR, I propose a system to resolve this, which uses generational
indexes in the view id path (for the items where this is relevant).

Some other historical record: #9

This brings back the `View::State` associated type (renamed to
`ViewState` and `SeqState` depending on the trait), in order to perform
this wiring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant