After D14246 this scenario is possible (this is caused because the effect is asynchronous):
- This effect is executed when Tunnelbroker is disconnected, getCurrentIdentityUserState is called
- In this time, Tunnelbroker connects, but when the effect is running again we early-exit because backupUploadInProgress.current = true
- The call to getCurrentIdentityUserState is done, we need a migration but in this execution, Tunnelbroker is disconnected so we early-exit
- Migration is not performed.
In this case, we might call getCurrentIdentityUserState in parallel but we not facing the issue described above.
Depends on D14246