rarebreed / quartermaster

0 stars 0 forks source link

Need to make some generic components in cycle js #1

Open rarebreed opened 7 years ago

rarebreed commented 7 years ago

So, I must be doing something wrong with rxjs. When I converted basically the same logic of my existing code (using rxjs) to use xstream instead, it works.

I'd prefer not to have to learn two different reactive libraries though.

rarebreed commented 7 years ago

I think I will go ahead and use xstream instead of rxjs. I managed to get the DOM component to show up on the webpage for a text input box, but it's not receiving any events. When I use xtream however, it works.

The only real difference is that in xstream I am using the combine operator to merge two streams, whereas in the rxjs version, I am using mergeMap. I don't think this is actually the problem though, because the component actually does render to the DOM. The problem is that when I enter text into the input form, the change isn't propagated.

There is one advantage to using xtream. I can use the cycle chrome dev tool to help with debugging.

rarebreed commented 7 years ago

Ok, I was able to get the rxjs version working. I made a couple mistakes in my code. So, the generic label component is now working