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

xilem_core: Add a WithoutElements ViewSequence #608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Philipp-M
Copy link
Contributor

This is similar as the fork view, but it allows using Views/ViewSequences without elements within a ViewSequence context that contains elements, see #461 (comment) for the original motivation.

Taking xilem_web as example, this should be possible (as well as something similar as in the linked comment):

fn run_once_fragment() -> impl DomFragment<()> {
    without_elements(run_once(|| {}))
}

The WidgetViewSequence is "fixed" as well, by using the "right" widget type (DynWidget is only used in AnyView, whereas I think Box<dyn Widget> is more general and correct).

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