【发布时间】:2017-01-22 19:09:49
【问题描述】:
我使用 redux-observable 开发一个 React Native 应用程序。我有 10 多个史诗,都以 .catch(err => console.error(err)) 结尾,以便在史诗内部出现错误时显示 React Native“红框”(参见 https://facebook.github.io/react-native/docs/debugging.html#errors)。
如何定义一个全局错误处理程序,供所有史诗使用(它们稍后由combineEpics 函数组合)?
【问题讨论】:
标签: react-native redux-observable