Skip to content

fix(react-sample): handle user info query errors correctly#1083

Merged
charIeszhao merged 1 commit intomasterfrom
charles-fix-react-sample-userinfo-success-state
Mar 17, 2026
Merged

fix(react-sample): handle user info query errors correctly#1083
charIeszhao merged 1 commit intomasterfrom
charles-fix-react-sample-userinfo-success-state

Conversation

@charIeszhao
Copy link
Copy Markdown
Member

Summary

Fix the react-query user info page so non-2xx API responses are treated as errors instead of showing the success state.
Improve the error display to show the SDK or API error message directly when available.

Testing

Tested locally

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@charIeszhao charIeszhao merged commit 0f48db2 into master Mar 17, 2026
20 checks passed
@charIeszhao charIeszhao deleted the charles-fix-react-sample-userinfo-success-state branch March 17, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants