【发布时间】:2015-10-05 19:21:42
【问题描述】:
我正在使用 React.js 和 Reflux 开发 Chrome 扩展程序。现在,当使用一个回调更新存储时,我需要通知扩展的所有部分有关更改。
类似:
function(newStore){
chrome.runtime.sendMessage({action: 'updateStore', store: newStore});
}
Reflux 中添加此类回调的意义何在?
【问题讨论】:
标签: javascript reactjs flux refluxjs