Page MenuHomePhabricator

D10043.id.diff
No OneTemporary

D10043.id.diff

diff --git a/native/crash.react.js b/native/crash.react.js
--- a/native/crash.react.js
+++ b/native/crash.react.js
@@ -148,11 +148,15 @@
}
async sendReport() {
- const sanitizedReduxReport: ReduxCrashReport = sanitizeReduxReport({
+ // There's a type error here because ActionLogger doesn't understand the
+ // exact shape of the Redux state / actions it is passed. We could solve it
+ // by adding some type params to ActionLogger
+ const rawReduxReport: ReduxCrashReport = ({
preloadedState: actionLogger.preloadedState,
currentState: actionLogger.currentState,
actions: actionLogger.actions,
- });
+ }: any);
+ const sanitizedReduxReport = sanitizeReduxReport(rawReduxReport);
const result = await sendReport({
type: reportTypes.ERROR,
platformDetails: {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 8:58 PM (6 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2713036
Default Alt Text
D10043.id.diff (831 B)

Event Timeline