I've had something bothering me for the past couple of days and I can't seem to come up with a solution that I like. I'm using refluxjs, but I think its applicable to vanilla flux as well.
So, say I have a React ComponentOne that calls a flux action to post some form data to an API to create a Thing.
My store fires a "ok, a Thing is POSTing" event, and then in a bit fires a "ok, a Thing was created" event.
How is my ComponentOne supposed to disambiguate these events? ComponentTwo could have called the same action and we don't know which Thing-POSTed event corresponds to which component.
Maybe ComponentOne's data results in a failure event, whilst ComponentTwo results in a completed event...we've got two events, both of which are plausible events for both components to expect and no obvious way to tell which is which.