These are chat archives for garbles/yolk

12th
Nov 2015
Murphy Randle
@splodingsocks
Nov 12 2015 05:40
@garbles Hi there! I'm just taking a look at Yolk for the first time tonight, and I'm running into some difficulty. I wonder if you might lend a hand. I've got an observable of IDs. I'm mapping over them and returning the result of calling https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/doc/operators/getjson.md to fetch info associated with each of the IDs
(or rather, concatMapping over)
so I at this point I should have an observable of JSON responses
then I try to render those to the UI, but Yolk (or JsDOM?) throws the error UnexpectedVirtualElement()
I've only started with RxJS a couple of days ago, so I'm probably doing something quite wrong here, anyway
but I'd love insight if you have it
Gabe Scholz
@garbles
Nov 12 2015 05:44
@splodingsocks pretty sure it's because the observable would return an object rather than a value
if you mapped the response through JSON.stringify i'll bet it would work
Murphy Randle
@splodingsocks
Nov 12 2015 05:48
Wow! So it did!
thanks, @garbles !
Gabe Scholz
@garbles
Nov 12 2015 05:48
no problem
Murphy Randle
@splodingsocks
Nov 12 2015 05:48
so Yolk knows how to render Primitive values from streams, or other Yolk components, and that's it, right?
Gabe Scholz
@garbles
Nov 12 2015 05:49
you're correct
well
actually
if your object has a toJS method on it, then it will call that before rendering
but yea i guess you can also render arrays of things, as long as those things are observables, plain values or yolk components
Murphy Randle
@splodingsocks
Nov 12 2015 05:55
oh, that's right
very cool!
thank you!
Gabe Scholz
@garbles
Nov 12 2015 05:55
my pleasure. let me know how it goes!
Murphy Randle
@splodingsocks
Nov 12 2015 20:23
@garbles, it's going well so far
now I'm trying to write a wrapper for react-dropzone, and I need to know if there's an equivalent to this.getDOMNode() in Yolk
some way to get access to the dom node from within the render function
Murphy Randle
@splodingsocks
Nov 12 2015 23:01
I'm really enjoying using Yolk
but at the same time I'm surprised by how many little things I'm missing from React
like CSSTransitionGroup
and using existing react elements is a bit painful