These are chat archives for reflux/refluxjs

8th
Jul 2015
sergelerner
@sergelerner
Jul 08 2015 04:58
@allain thanks first of all. Yea I had my suspicious that that is the case. I still have a problem though. One of my stores needs to get data from another store on demand.
@allain from my understanding only views can create actions is that correct ?
Eric Eastwood
@MadLittleMods
Jul 08 2015 05:05
@sergelerner You can also have DAO type wrapper fire actions. See "Remote Data Fetching" in this article.
sergelerner
@sergelerner
Jul 08 2015 09:44
@MadLittleMods thanks for a great read. Although Im not sure I understand how those wrappers work.. Do u have an example ?
sergelerner
@sergelerner
Jul 08 2015 09:51
In my app I have an EntityStore which contains a map of entities by IDs. Let's say People. Another store lets call it FooStore recieves an ID as a string through some external api action. Here is the problem: I need to getEntityByID from the EntityStore which is an object with all kinds of properties which I need to access in the FooStore. How would I get this data from EntityStore ?
sergelerner
@sergelerner
Jul 08 2015 15:37
Possible solution : All stores which are interested with what EntityStore has will subscribe to it and receive an instance of all the data it contains, that way any given Store will have access to any entity without reaching out. Sounds valid?