i'm working on chrome extension using react.js , reflux. need notify parts of extension changes when store updated 1 callback.
something like:
function(newstore){ chrome.runtime.sendmessage({action: 'updatestore', store: newstore}); } where point in reflux adding such callback?
i haven't built chrome extension using reflux in general pattern call:
store.listen(function(data) { // data whatever store invoked saying this.trigger(...) }); the callback function invoked whenever store calls trigger new data.
Comments
Post a Comment