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, Nov 1, 1:57 PM
Unknown Object (File)
Oct 4 2024, 12:59 AM
Unknown Object (File)
Oct 4 2024, 12:59 AM
Unknown Object (File)
Oct 4 2024, 12:59 AM
Unknown Object (File)
Oct 4 2024, 12:59 AM
Unknown Object (File)
Sep 8 2024, 2:00 AM
Unknown Object (File)
Aug 17 2024, 5:55 PM
Unknown Object (File)
Aug 9 2024, 9:59 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