Skip to content

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Nov 12, 2024

This switches to @tanstack/react-query for doing GraphQL requests instead of urql.
One reason is that it has better behaviour in Suspense, and integrates well with @tanstack/router.

We also don't really use any of the urql 'unified cache' feature, but instead will now rely on explicit query invalidation, which is easier to reason about.

I also took a shot at actually starting to test full pages, using msw to mock GraphQL responses. For now, it's just a snapshot test of the homepage, but it should be easy to replicate in other places.

I also started to add full-pages stories in storybook, which should help with previewing pages without setting up MAS, potentially with different languages.

Copy link

cloudflare-workers-and-pages bot commented Nov 12, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 083dc42
Status: ✅  Deploy successful!
Preview URL: https://0e67828f.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-frontend-tanstack-q.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose force-pushed the quenting/frontend/tanstack-query branch 6 times, most recently from f33ae39 to b911572 Compare November 14, 2024 17:42
@sandhose sandhose marked this pull request as ready for review November 14, 2024 17:53
@sandhose sandhose force-pushed the quenting/frontend/tanstack-query branch from 0b1a6ee to 75b9597 Compare November 14, 2024 18:08
@sandhose sandhose enabled auto-merge (rebase) November 15, 2024 08:50
@sandhose sandhose merged commit edc49fe into main Nov 15, 2024
19 checks passed
@sandhose sandhose deleted the quenting/frontend/tanstack-query branch November 15, 2024 08:51
@sandhose sandhose added the A-Frontend Changes on the React frontend label Dec 16, 2024
@sandhose sandhose added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Frontend Changes on the React frontend T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant