Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Provide default text node treatment for common types within vdom.ts #868

@economatics

Description

@economatics

When using expressions as children of TSX nodes, the evaluated result is used to be handled as a widget within vdom.ts. It fails on that with errors when result is a common JS type.

To fix it please provide something similar to vdom.ts at line 473:

else if (typeof child === 'string' || typeof child === 'number' || typeof child === 'boolean' || child instanceof Date) {

Nevertheless there may be the same problem when evaluated result isinstanceof array. Looks like the whole array may be treated as widget then. Am I right?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions