Jan*_*nes 6 reactjs react-redux admin-on-rest
我想在成功执行自定义操作后获取要刷新的列表.
我在休息教程中使用了管理员的传奇
function * actionApproveSuccess () {
yield put(showNotification('Executed'))
yield put(push('/comments'))
// does not refresh, because the route does not change
// react-redux-router also has no refresh() method, like react-router has...
}
Run Code Online (Sandbox Code Playgroud)
我的另一个想法是以某种方式触发列表组件的刷新操作,但我不知道如何访问它或如何将其挂钩到ACTION_SUCCESS事件.
| 归档时间: |
|
| 查看次数: |
4042 次 |
| 最近记录: |