Repository navigation
Add back some HybridApp logic after TS migration to fix authentication - #36750
Conversation
|
@mananjadhav @ One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@roryabraham @AndrewGable Does this need C+ review? |
|
Forgot this wasn't merged yet, I will reply to comments next week |
Co-authored-by: Rory Abraham <47436092+roryabraham@users.noreply.github.com> Co-authored-by: Manan <manan.jadhav@gmail.com>
# Conflicts: # src/pages/LogOutPreviousUserPage.tsx
|
Merged I've re-tested and it's working as expected after 9e5aa9d. Untitled.mp4 |
|
Hmmm when I added |
|
Maybe - Can you try testing it again and see if you get the same results as the screen recording? |
|
@AndrewGable upon retesting this I landed here: |
|
After uninstalling the app and reinstalling, it worked as expected. I think this is safe to merge and doesn't make anything worse, but I don't know if this worked with expired authTokens. |
|
I can do some further real world testing once we merge and get a new version out 👍 |
|
Tested with an authToken that expires after 5s, and still this seems to be working correctly. Going to merge this. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.55-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.55-3 🚀
|
| // We only want to run this effect once on mount (when the page first loads after transitioning from OldDot) | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| }, []); | ||
| }, [initialURL, isAccountLoading]); |
There was a problem hiding this comment.
This useEffect runs continuously because isAccountLoading is set to true in signInWithShortLivedAuthToken and caused this issue #39831

Details
Adds back some logic that was removed in #34777 while migrating this page to TypeScript. This code is needed to run HybridApp
Fixed Issues
$ #36717
Tests
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
hybrid.mov