Closed Cmdv closed 8 years ago
Hey @Cmdv, I'd hold about for a few days. Currently, we're in the process of changing how Inferno works behind the scene. We're reducing the size of its core massively, improving performance and going to a stricter vdom structure by leveraging some other performance insights. I'll be happy to discuss this more on Gitter/Slack. :)
closing this as the spike
branch no longer has this issue and will soon be merged to master.
Hi,
We're trying to test out Inferno as a virtual DOM for CycleJS but are hitting a pain point with our current tests.
This is the test in question, ignoring the technicalities of Cycle under the hood we pass
html:
through a function calledtoHTML
.div('.test-element', ['Foobar'])
get converted to example belowtoHTML
is the function which receives our converted vTreecreateTemplate(() => vTree)('cycle-inferno')
returns nothing not even null and our tests err log is:Uncaught ReferenceError: document is not defined
The code in question is located here. @TylorS has been able to implement Snabbdom to be used with Cycle here
Wonder if using Inferno in this manner would be possible? or from reading your tests on
CreateTemplate
the use ofrender
was inan afterEach
is that a requirement, or are we using it totally wrong?Thanks :smile: