-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
hybrid.mov