Page MenuHomePhabricator

[native] Avoid calling our custom Alert from reducers
ClosedPublic

Authored by ashoat on May 21 2024, 10:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 28, 9:15 PM
Unknown Object (File)
Fri, Mar 28, 1:10 PM
Unknown Object (File)
Feb 27 2025, 6:41 PM
Unknown Object (File)
Feb 26 2025, 8:02 AM
Unknown Object (File)
Feb 26 2025, 8:01 AM
Unknown Object (File)
Jan 20 2025, 12:40 AM
Unknown Object (File)
Dec 27 2024, 10:35 PM
Unknown Object (File)
Dec 27 2024, 10:35 PM
Subscribers

Details

Summary

The test plan in D12124 points out an issue where our custom Alert is called from a reducer, but I didn't catch all of these cases.

The code in onStateDifference is called from reducers as well, so we should use the stock React Native Alert here as well.

Test Plan

I have a repro of this locally, and I was able to confirm that the error no longer occurs when the Alert is triggered

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable