When using the [relatively new] MVC bits in Sencha Touch I find that 90% of my dispatch calls look something like:
Ext.dispatch({
controller: "customers",
action: 'show',
record: record
});
That's fine, and I like delegating the flow to the seperate controller code, rather than complicated paths of events, but I have yet to see any advantage over just doing something like:
controllers.customers.show({
record: record
});
Which is shorter and cleaner. I feel like I am just following the Ext.dispatch
pattern for the sake of it. My app doesn't benefit from push/pop url history for state, and that is the only reason I can see for using this longer more complex approach.
What am I missing? What do I gain from using Ext.dispatch to call controllers?