-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control Stores execution order on a certain Action #381
Comments
+1 |
2 similar comments
+1 |
+1 |
+1 Stay tuned. Maybe checkout my comment in #354 |
@LongLiveCHIEF In case I am misunderstood Id like to elaborate what I actually have in my application:
Now since different Stores listen to the same Actions sometimes there is an execution order trouble. Basically Other Stores wont listen to the Actions "add", "update" and "delete". They will only listen to the EntityStore trigger, which will propagate in its payload the Action name, its original payload plus the EntityMap. |
Thanks for the excellent use-case... this will definitely help me inform the public api of this feature as I continue to work out the concept code for the 0.3 branch. Let me think through this later tonight, and I'll post an update with some psuedo-code that would be based on utilizing some POC code for reflux I'm working out. You can look at the implementation concept and give me some feedback. |
in case this is going away, id love to get any input on my suggested workaround. |
Sorry, been taking a mid-week vacation. :-) I wouldn't really call it a workaround, as much as a redesign. It's actually very close to the concept we have for how things will work in 0.3.0. We're adding a One of the roles of the contexts witll be to merge schemas of the stores inside the context, so that your components or other pieces of your app can declare the data they want, or the queries they want to run, directly from a context. The image I'm sharing below is concept only. Some words for things might not be the best words either, but I think it's enough to provide the feedback you desire. |
Thanks for sharing! Looks interesting. I can't say I understand everything, but if the general direction is aggregation and sharing - then it sound good. I will go with my solution for now. I hope it will be easy to migrate to 0.3.0 later on. |
@H3Chief so I hear Reflux 3.0 is out : ) I am catching up.. is there a way to control Store execution on Actions or something similar ? |
Hi, I'm not sure how to exactly call it, but what I have is an Action to which few Stores subscribe, how would I control the order of Stores execution upon that Action? I think I'm looking for a way to chain Stores OnAction. If this is not possible, the minimum I need is to set the last Store that will act on a certain Action.
The text was updated successfully, but these errors were encountered: