Skip to content

Conversation

ntilwalli
Copy link
Contributor

Ensures the user does not emit arrays directly, but wraps VNode arrays in a parent VNode before composing with makeSortable

@ntilwalli
Copy link
Contributor Author

I also updated snabbdom-selector and allowed children nodes to be falsy...

node: VNode,
key: string = Math.random().toString()
): VNode {
if (!node) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would throw here too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not meant to be an error check. I added that line to skip falsy children VNodes like null and undefined, which is something @cycle/dom offers.

@jvanbruegge
Copy link
Collaborator

Will merge and publish once home

@jvanbruegge jvanbruegge merged commit 49d7f0b into cyclejs-community:master Oct 12, 2017
@jvanbruegge
Copy link
Collaborator

Published in 2.4.0
Sorry it took so long

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.

2 participants