Skip to content

Commit

Permalink
ENG-4659 feat(portal): set up hydration boundary (#898)
Browse files Browse the repository at this point in the history
- Adds in the HydrationBoundary in the providers.tsx -- this enables the
partial hydration pattern referenced in
#885
- Once this wraps Portal via the providers we can partially hydrate as
long as the queryKey matches server + client side. This won't have any
bearing on our client-side only hooks such as in modals but enables the
hydration pattern where loaders are available
- The HydrationBoundary ensures that our client-side cache for each
query (where loaders are available) starts with the same data that was
fetched and rendered on the server
- Note: This re-opens PR #888 into `feature/graphql-migration` instead
of onto `main`
  • Loading branch information
jonathanprozzi committed Nov 12, 2024
1 parent bbd6669 commit 841e347
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 841e347

Please sign in to comment.