Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves:
Changes:
This appears to be a general timing issue. I'm not sure why it shows up as a problem on mobile Safari specifically.
Basically, we need to fetch project info in order for the project page to load correctly. Previously, that was only done when the session info changed to "FETCHED" from any other state (or when the project ID changes). This change also fetches project info when the session info when the session status is already "FETCHED" before the component is mounted.
In addition, I added a spinner that displays on the project page if the main content components don't load. That spinner should never appear for very long, but if it does, its
classNameshould provide a hint for whoever tries to debug the problem in the future. As part of this, I converted severala && <b />constructs toif (a) { children.push(b) }, which changed indentation, so I recommend viewing the diff with "Hide whitespace" enabled.Here's a screenshot of the spinner in action: