Context is in ENG-3620.
Details
Details
I compiled a prod build to my physical device. I had a repro where I logged out and back in twice in a row, the app would crash.
With this change, the app no longer crashed. After enabling prod logs by editing native/babel.config.cjs, I was able to see this log in Xcode:
[javascript] [Error: clear_media_cache_failed]
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- ashoat/mediacache
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/data/sqlite-data-handler.js | ||
---|---|---|
97 | This gets triggered when the user logs out, and is the main case that I was able to repro. It did not lead to the "frozen log-in state" mentioned in the Linear issue (only occurred in dev) | |
129 | This gets triggered when the database is detected as corrupted, and in dev mode leads to the "frozen log-in state" issue. I stopped being able to repro this randomly, but based on reading the code it seems like the issue shouldn't occur after the changes in this diff |