Skip to content

Views that render a sub-view #207

@ludlovian

Description

@ludlovian

New to domvm, moving from Mithril, so apologies if I have misunderstood

If I have a view that only renders another view, then I get an error of cannot set _node of undefined at

vnode.el._node = vnode;

The problem goes away if, for example, View A renders View B inside a <div> or other DOM element, but it seems it doesn't like a view that only renders another view.

I have a small flems,io example which shows this in action

I can rewrite the existing components/views so that they wrap the sub-views, or become template producing functions, but wondered if this is an intentional restriction?

Oh, and thanks for what already looks like a great library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions