Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33337109
D10043.1768907277.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
831 B
Referenced Files
None
Subscribers
None
D10043.1768907277.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
Tue, Jan 20, 11:07 AM (11 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5960547
Default Alt Text
D10043.1768907277.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