Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3553707
D10043.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
831 B
Referenced Files
None
Subscribers
None
D10043.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10043: [Flow202][native][skip-ci] [59/x] Hide type error in crash reporting of ActionLogger
Attached
Detach File
Event Timeline
Log In to Comment