For my store, I have something along the lines of:
var GraphStore = Reflux.createStore({
listenables: [GraphActions],
updateGraphedMetrics: function(graphs) {
...
this.trigger(graphs);
},
getInitialState: function() {
this.graphedMetrics = [];
return this.graphs;
}
});
I am listening using:
var Dashboard = React.createClass({
mixins: [Reflux.connect(GraphStore,"graphs")],
render: function() {
...
}
});
This works great. However, what if I wanted to listen to changes at a specific index in graphs (the stateKey), rather than the entire array? Is that possible with the current structure? If not, what might be the best way to go about it?