Noticed that generateNonce was getting called after the user auth'd with identity, probably because the effect was re-run.
Adding this condition prevented it from getting rerun unnecessarily.
Differential D11771 Authored by ashoat on Apr 24 2024, 12:45 PM.
Details Summary Noticed that generateNonce was getting called after the user auth'd with identity, probably because the effect was re-run. Adding this condition prevented it from getting rerun unnecessarily. Test Plan Confirm that I'm not seeing IDENTITY_GENERATE_NONCE_STARTED and IDENTITY_GENERATE_NONCE_SUCCESS dispatched after identity auth during login
Diff Detail
Event TimelineHarbormaster completed remote builds in B28448: Diff 39458.Apr 24 2024, 1:41 PM2024-04-24 13:41:33 (UTC-7) This revision is now accepted and ready to land.Apr 25 2024, 6:44 AM2024-04-25 06:44:16 (UTC-7) Closed by commit rCOMM7ad3d18e3433: [native] Don't refetch nonce from identity after identity auth (authored by ashoat). · Explain WhyApr 25 2024, 8:03 AM2024-04-25 08:03:22 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 39489 native/account/siwe-panel.react.js
|
We are issuing the exact same query here twice at the same time. Can this be avoided?