Skip to content
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

VPS-43/Undefined Bug #221

Merged
merged 3 commits into from
Aug 17, 2024
Merged

VPS-43/Undefined Bug #221

merged 3 commits into from
Aug 17, 2024

Conversation

harbassan
Copy link
Contributor

@harbassan harbassan commented Aug 15, 2024

Describe the issue

In certain situations, such as when a user refreshes on the the invalid-role page, the url resolves to play/.../multiplayer/undefined and an infinite loading screen is shown.

url_flicker

Describe the solution

The error responses from the /navigate endpoint weren't being handled properly in the PlayScenarioPage & PlayScenarioPageMulti components, because in situations where it was also the mount of the component it would still attempt to redirect the user to the given scene, which in this case was undefined.

Also added a new generic error page, as opposed to a blank screen.

Full bug analysis on the confluence page.

Risk

No conflict risks, however the problem may not be completely solved (see confluence).

Definition of Done

  • Code peer-reviewed
  • Wiki Documentation is written and up to date
  • Unit tests written and passing
  • Integration tests written and passing
  • Continuous Integration build passing
  • Acceptance criteria met
  • Deployed to production environment

Reviewed By

Who reviewed your PR - for commit history once merged

Copy link
Member

@choden-dev choden-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic relating to problem looks fine, however there are some incorrect usages of useCallback

Copy link
Member

@choden-dev choden-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have write access now

@harbassan harbassan merged commit f929b52 into master Aug 17, 2024
6 checks passed
@harbassan harbassan deleted the undefined-bug branch August 17, 2024 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants