-
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
[Hold for payment 5/7] Blank screen after creating an account #2497
Comments
@marcaaron This is a follow up on the problem discovered in #2346 (comment) ProposalAs per my comment here #2346 (comment) this was traced to a call for Navigation while the navigation component have no navigators (stacks or other) mounted. This would result in the error printed on the console "Error: The 'navigation' object hasn't been initialized yet." This issue occurs only during initialization. While navigation is not yet ready an incoming call can be captured and scheduled for when the navigator components mount. This would be shortly after the call. As @marcaaron suggested here: #2346 (comment)
The Navigation.jslet lastAttemptedRoute;
function navigate(route) {
// unmodified
}
function navigateLater(route) {
lastAttemptedRoute = route;
}
function enableNavigation() {
if (lastAttemptedRoute) navigate(lastAttemptedRoute);
exports.navigate = navigate;
}
const exports = {
navigate: navigateLater,
enableNavigation,
};
export default exports; And then we call NavigationRoot.js<NavigationContainer
onReady={enableNavigation}
...
/> A note on Changing the implementation of
AlternativeA simpler alternative is to just prevent navigation while it's not yet ready. |
Proposed solution makes sense to me. Let's do it! |
Triggered auto assignment to @arielgreen ( |
@arielgreen can we get some help creating a job here? No need to add |
Bump, I haven't started working on this as I'm not yet hired on Upwork |
Adding the @arielgreen Making this a daily since it's preventing E.cash production deploy. |
Thanks @roryabraham! @kidroca, I've just sent over an invite to the Upwork job. |
@arielgreen |
Not a blocker but left a comment as I think it's something we should follow up on before considering this issue "closed". |
Reopening, will close upon payment 5/7. |
Paid contract + bonus for proposing the issue. Thanks @kidroca. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
User proceeds to expensify.cash chat list
Actual Result:
User is redirected to a blank screen and a JS error can be seen in the console
Action Performed:
Workaround:
Refreshing the page manually would fix the issue and the chat list would load
Platform:
Where is this issue occurring?
The issue is confirmed in:
Web ✔️
Android ✔️
iOS
Desktop App
Mobile Web
The other environments are probably affected as well
Version Number: 1.0.21-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5020701_video.mp4
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: