by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 11 2019 06:31
    pH200 closed #39
  • Aug 11 2019 06:31
    pH200 commented #39
  • Aug 11 2019 06:30
    pH200 closed #16
  • Aug 11 2019 06:30
    pH200 commented #16
  • Aug 11 2019 06:27
    pH200 closed #17
  • Aug 11 2019 06:27
    pH200 closed #30
  • Aug 11 2019 06:27
    pH200 commented #30
  • Aug 11 2019 06:26
    pH200 closed #32
  • Aug 11 2019 06:26
    pH200 closed #38
  • Aug 11 2019 06:26
    pH200 commented #38
  • Nov 07 2017 08:29
    pH200 closed #29
  • Nov 07 2017 08:29
    pH200 commented #29
  • Oct 24 2017 14:17
    vp2177 commented #29
  • Oct 24 2017 13:49
    pH200 reopened #29
  • Oct 24 2017 13:49
    pH200 commented #29
  • Oct 24 2017 09:03
    pH200 commented #29
  • Oct 22 2017 14:58
    pH200 commented #37
  • Oct 22 2017 13:48
    vp2177 commented #29
  • Oct 22 2017 13:47
    vp2177 commented #29
  • Oct 20 2017 19:20
    FunkMonkey commented #37
pH200
@pH200
Probably not. You'll either use Widget in "virtual-dom" or use shouldComponentUpdate(){ return false; } in React for mixing these two libraries. I would say stick to React if you're using Cycle-React.
pH200
@pH200
Just released: Cycle-React 1.0 https://github.com/pH200/cycle-react
And the new API "bindListeners" is inspired by "bindActionCreators" from redux https://github.com/pH200/cycle-react/blob/master/docs/interactions.md
Christian Ramsey
@christianramsey
Ace! We are testing the new version out.
pH200
@pH200
@christianramsey Cool! You can find the migration guide at the changelog. Let me know if you find any problems. I'm working on the documentations and tutorials.
New counter example like redux
pH200
@pH200
Just released: Cycle-React 2.0, with support for React Native. Thank @cem2ran for the PR. https://github.com/pH200/cycle-react/releases/tag/v2.0.0
Christian Ramsey
@christianramsey
@pH200 I can work this weekend on the cycle-react docs, from what I’ve read a lot has changed. Summary?? 2.0 was mainly put in place because of the React Native implementation?
pH200
@pH200
@christianramsey cool. 2.0 was only about React Native. Nothing really changes except for that.
pH200
@pH200
Just released: Cycle-React 3.1.0. Now supports querying the React component's lifecycles through observables. https://github.com/pH200/cycle-react/releases/tag/v3.1.0
Fred Daoud
@foxdonut
cool :thumbsup:
Zach Collins
@corps
very cool! thanks for the new version! been using cycle-react for a project for awhile now with only minor issues like lifecycles, etc, so this is a big boon
Cem Turan
@cem2ran
@pH200 Planning on supporting drivers / aligning to cycle's api?
pH200
@pH200
@cem2ran In the vague. I don't think we have to be API compatible with Cycle's DOM driver. However, I'll see if we can integrate with other Cycle's drivers and make a helpful API for that purpose.
geohuz
@geohuz
Wondering how can I write the async data loading code in cycle-react, or can I use the cycle-core/httpdriver ?
pH200
@pH200
@geohuz I myself was using a sink and a source technic like cycle-core for this kind of task. It works like cycle-core/httpdriver. I'll write an example code about this.
geohuz
@geohuz
thanks a lot!
Julia Jacobs
@jewelsjacobs
@pH200 thank you for making this!
Jesse Harlin
@the-simian
Can I use existing react components with this library?
pH200
@pH200
@the-simian Yes, just use them as usual like <MyReactComponent />. In addition, Cycle-React components are native react components. So, you can use Cycle-React components with your existing React apps, too.
bright-star
@bright-star
How do you represent props.children in cycle-react?
I'm trying const Header = component('Header', (interactions, props) => Rx.Observable.just( <div> <p> Header </p> { props.children } </div> ));
With <Header> <p>Header child</p></Header> in the calling component
The only thing that renders is the <p>Header</p> tag, and not the props.children content
Never mind; it was props.get('children')
bright-star
@bright-star
Am I using react-router incorrectly with cycle-react? I am getting a strange route string rendered into the page.
bright-star
@bright-star
If I have a Redux API-compliant RxJS store, and I use react-redux's connect() composition to get an Observable into props, how do I process the observable?
bright-star
@bright-star
I tried a few different variations on .map(), .subscribe(), and Rx.Observable.just(), but couldn't get a value that would satisfy React out of it
pH200
@pH200
@talexand Haven't look at redux for a while. TBH you need neither redux nor react-redux if you had cycle-react already. However, I think it's totally possible to use all of them at once. And maybe you can take a look at this example:
https://github.com/pH200/cycle-react/tree/master/examples/web/counter
It's a direct re-implementation of redux' counter example. Hope you'll find it helpful.
bright-star
@bright-star
I'll take a look, thanks. This is actually 'rx-redux' from jas-chen, so I thought it might be a better fit.
Héctor Menéndez
@hectormenendez
Hello, is this project alive?
Sunny Gonnabathula
@sunny-g
@hectormenendez it’s not being actively maintained, but it works, i use it in production, and doesnt really need much improvement
Héctor Menéndez
@hectormenendez
Thanks @sunny-g Yeah, that’s what I noticed.. it just works. Best of both worlds. Thanks for clearing it up ! Cheers!
pH200
@pH200
New release: 5.0 and the removal of createClass for React v15.5 https://github.com/pH200/cycle-react/releases/tag/v5.0.0
Ignacio Varas
@ivarasg
Hey, can I use this with most instead of Rx?
Ignacio Varas
@ivarasg
is there any order for the definitionFn arguments? I see mixed forms in the docs.
pH200
@pH200
@ivarasg Unfortunately, it's not possible now. I have this in my mind, so I made the dependency of Rx as an adapter.
However, only RxJS 4 is supported now. Supporting RxJS 5 and xstream is in my backlog.
The order of definitionFn should be (interactions, props, lifecycles)
Looks like I forgot to change some docs. Thanks for the reminder.
Ignacio Varas
@ivarasg
I was just checking that out in the code, about the adapter, it would be great to be able to plug in any stream library. This looks great so far though
Ignacio Varas
@ivarasg
The viewComponent form is already available?
pH200
@pH200
It's available. But, there's no documentation supporting that.
Ignacio Varas
@ivarasg
I figured, it's called just Cycle.component anyways, right?
pH200
@pH200
There's Cycle.component and Cycle.viewComponent in 5.0
The interface for viewComponent is slightly different, but it's sharing the same internal with component.
Ignacio Varas
@ivarasg
great