Skip to content

Conversation

@vpomerleau
Copy link
Contributor

Because

  • Sentry reports type errors when GQL cache reads return null

This pull request

  • Updates Apollo readQuery usage to handle null results safely
  • Tightens Typescript typing for cache reads to avoid destructuring null
  • Switches from cache.readQuery to client.readQuery for safer, supported cache access
  • Removes unused getProfileInfo getter

Issue that this pull request solves

Closes: FXA-12756

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@vpomerleau vpomerleau requested a review from a team as a code owner December 8, 2025 23:26
@vpomerleau vpomerleau marked this pull request as draft December 9, 2025 17:11
Because:

* Sentry reports type errors when GQL cache reads return null

This commit:

* Updates Apollo readQuery usage to handle null results safely
* Tightens Typescript typing for cache reads to avoid destructuring null
* Switches from `cache.readQuery` to `client.readQuery` for safer, supported cache access
* Removes unused getProfileInfo getter

Closes #FXA-12756
@vpomerleau vpomerleau marked this pull request as ready for review December 10, 2025 17:04
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