Skip to content

Show page error when startup requests fail - #1291

Open
armandoschianodicola wants to merge 1 commit into
wger-project:masterfrom
armandoschianodicola:fix/startup-query-error-message
Open

Show page error when startup requests fail#1291
armandoschianodicola wants to merge 1 commit into
wger-project:masterfrom
armandoschianodicola:fix/startup-query-error-message

Conversation

@armandoschianodicola

Copy link
Copy Markdown

Show an error message when page requests fail

Proposed Changes

  • Add a route-level error boundary that displays an informative alert instead of a blank page when rendering fails.
  • Forward React Query errors, including 403 responses, to the error boundary and reset the error state when navigating to another route.
  • Add a test covering the error message displayed for a failed page request.

Related Issue(s)

None.

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.

1 participant