Commit 3705687
Skip module-level reset on initial SESSION load in HybridApp
The SESSION Onyx callback unconditionally reset currentTryNewDot and
isLoadingTryNewDot on every accountID change, including the initial
undefined → accountID transition. On mobile, when NVP_TRY_NEW_DOT
fires before SESSION, the reset blanks already-populated state and
Onyx never re-fires the NVP callback, leaving the module permanently
stuck in a loading state. This caused closeReactNativeApp to silently
no-op via shouldBlockOldAppExit.
Now the reset is skipped on the initial session load (undefined →
accountID). Real account switches (accountID1 → accountID2) and
sign-outs still trigger the reset as before.
Co-authored-by: Abdelrahman Khattab <abzokhattab@users.noreply.github.com>1 parent a7b0b95 commit 3705687
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
158 | 183 | | |
159 | 184 | | |
160 | 185 | | |
| |||
0 commit comments