Skip to content

Commit

Permalink
Fix updates of VTexts
Browse files Browse the repository at this point in the history
  • Loading branch information
gvergnaud committed Mar 18, 2018
1 parent 5bf62b9 commit 8e2d5f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evolui",
"version": "1.2.0",
"version": "1.2.1",
"description": "",
"main": "lib/evolui.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/html/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import hyperx from 'hyperx'
import h from './h'
import h, { VNode } from './h'
import patch, { createElement } from './patch'
import Observable from '../Observable'
import { createReactiveTag } from '../core'
Expand Down Expand Up @@ -34,6 +34,8 @@ const createRenderProcess = vdom$ =>
complete: () => observer.complete(),
error: e => observer.error(e),
next: newTree => {
if (!(newTree instanceof VNode)) return observer.next(newTree)

tree = newTree

const onMount = newTree.lifecycle.mount
Expand Down

0 comments on commit 8e2d5f7

Please sign in to comment.