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
F2207250: D12159.id40515.diff
Sun, Jul 7, 6:49 AM
Unknown Object (File)
Thu, Jul 4, 1:25 PM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:27 AM
Unknown Object (File)
Thu, Jun 20, 11:17 PM
Unknown Object (File)
Thu, Jun 13, 1:37 AM
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