Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 13 17:47
    ied3vil commented #543
  • Dec 13 11:14
    TwR-Slice commented #549
  • Nov 21 14:46
    guoyang007 opened #552
  • Oct 10 11:02
    tgv1975 commented #549
  • Sep 25 14:53
    TwR-Slice commented #549
  • Aug 12 09:59
    carolineapp commented #543
  • Jul 28 16:37
    ied3vil commented #534
  • Jul 24 10:11
    raboija commented #420
  • Jul 24 10:11
    raboija commented #420
  • Jul 17 18:45
    andpor commented #534
  • Jul 01 11:58
    lloydjatkinson commented #550
  • Jun 25 17:30
    KenzoIkeizume opened #551
  • Jun 24 12:02
    lloydjatkinson commented #550
  • Apr 04 08:40
    ied3vil commented #550
  • Apr 03 11:20
    eek commented #550
  • Apr 03 11:20
    eek commented #550
  • Apr 02 21:48
    ied3vil commented #534
  • Mar 24 11:02
    ied3vil commented #543
  • Mar 24 11:02
    ied3vil commented #537
  • Sep 29 2018 14:43
    LiangZugeng commented #550
Quinten Powell
@qpowell
I'm still trying to wrap my brain around the architecture :)
Per Harald Borgen
@perborgen
@qpowell use asynchronous actions. Hook your login action up with a callback by doing Actions.login.listen(callback)
do the API call in the callback function and call this.completed / this.failure based on what you get back.
I think it's better to keep the API stuff here, rather than in the store, as the store is only for holding data.
11th
@11th
Hi there. Thanks for reflux, love it's simplicity.
Today I ran into trouble. There is no check to prevent store from listening to 2 different actions but with same name.
e.g. in store:
listenables: [UserActions, AdminActions]
if both user and admin have #saveProfile action then it will have unexpected behavior.
This example is ugly in design I just made it up. E.g. admin can have separate store or whatever.
The point is, it would be nice to get warning if this situation. Like react mixin - it will warn when multiple mixins have same method :)
devin ivy
@devinivy
@11th definitely open an issue in reflux-core, and we'll figure out how to deal with it!
Vladyslav
@kopylash
Hey, everybody)
devin ivy
@devinivy
hello!
Vladyslav
@kopylash
Can you help me with such issue: I have aggregate store that subscribes for another store
can I also subscribe for another action in aggregated store?
Because when I am trying to do it I catch error
devin ivy
@devinivy
if you have any code to share that would be useful. but i think the answer to your question is yes. reflux doesn't distinguish listening to stores versus actions, so they should be able to be listened to together.
what is the error?
Vladyslav
@kopylash
one minute
when I want to add this.listenTo(Actions.someAction, this.someHandler) to TestStore
Vladyslav
@kopylash
sorry, I've just tested that it works
maybe the root cause in webpack or react-router
devin ivy
@devinivy
ah, nice! i was going to say– it looks good to me!
:thumbsup:
Vladyslav
@kopylash
because in another module it does not :(
Luis Vinicius
@luisvinicius167
Event Controller inspired in Flux for Riot.js :)
Mads Petersen
@mspe87
Hi. What are the correct way to handle async form submission using reflux?
Long Yong Chong
@LongYC
Hi guys, how you debug Reflux?
Luis Vinicius
@luisvinicius167
riotux - A centralized state management inspired in Flux and Redux.
https://github.com/luisvinicius167/riotux
Luis Vinicius
@luisvinicius167
You can test riotux in your React apps! :D
screab
@screab
Hey guys, can someone explain to me the lifecycle of a store ? I cant' figure out when a store is actually created and when it is destroyed ...
Freax
@huangyanxiong01
how do relux support IE8 browser
how do reflux support IE8 browser?
devin ivy
@devinivy
ie8 is not well supported right now, because ie8 is not javascript es5 compliant. you can transpile reflux to a flavor of js that supports ie8 if you like.
Freax
@huangyanxiong01
Thank you
Avinash Srivastava
@avinashdaiict
I have two components and one store
how do I make the two components listen to the same store
if I use create store in both the components it will create a new instance of the store
not useful
is there any another way
devin ivy
@devinivy
hi @avinashdaiict. as you're hinting at, you should make a store that is shared by your components.
Bryan Grezeszak
@BryanGrezeszak
@avinashdaiict - if you're using the ES6 API then you would just attach the store to both components, i.e. do this.store = MyStoreClass; in the constructor of both components. It won't make a second instance of the store, only one singleton instance of the store will be made and both components will listen to/update off of it.
Markus Mahlberg
@mwmahlberg
You guys are aware that the refluxjs.com website is down?
devin ivy
@devinivy
yes– where did you find a link to that?
Markus Mahlberg
@mwmahlberg
@devinivy google, I guess
kamlesh tajpuri
@ktajpuri
Hello all
I have been working in reflex JS and I have some issues can anyone help
I have made a shared component which is using a store. I am using this component as a sub component in a parent component. Now I want each component to handle the on store change event separately. Currently all the sub components handle this store change which creates issue. Any help in this regard will be really appreciated
Christopher Shelley
@basiclaser
what up chums
Ahmed Rebai
@Rebaiahmed
Hi
Steve Scheffler
@evenkiel

Hi all. Hopefully this is an easy question. I'm using Reflux under ES6 and my store state isn't accessible in my React component under this.state.

I did set this.store in the component constructor and am extending Reflux.Component and Reflux.Store. I can access state through this.store.state, but would really like the component state to get merged in.

Is there something I'm missing here?

Steve Scheffler
@evenkiel
Found the root cause of my problem. I had an implementation of componentWillMount on my class which exteneded Reflux.Component; however, I had failed to call super.componentWillMount inside of it. That's where all the store/state magic happens. Once I added in the call to super everything worked. Hope this helps someone else.