-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENG-4634 feat(repo): adds initial data hydration pattern to template playground routes #885
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ground-hydration example for the initialData hydration pattern
…also includes pagination pattern
jonathanprozzi
changed the title
ENG-4634 feat(template): adds initial data hydration pattern to template playground
ENG-4634 feat(template): adds initial data hydration pattern to template playground routes
Nov 5, 2024
jonathanprozzi
changed the title
ENG-4634 feat(template): adds initial data hydration pattern to template playground routes
ENG-4634 feat(repo): adds initial data hydration pattern to template playground routes
Nov 5, 2024
The PR title check change I've added should work for future PRs -- I thought I added |
Vitalsine85
approved these changes
Nov 5, 2024
10 tasks
jonathanprozzi
added a commit
that referenced
this pull request
Nov 7, 2024
…888) - 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
10 tasks
jonathanprozzi
added a commit
that referenced
this pull request
Nov 9, 2024
- 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`
jonathanprozzi
added a commit
that referenced
this pull request
Nov 12, 2024
- 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`
Vitalsine85
pushed a commit
that referenced
this pull request
Nov 13, 2024
- 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`
jonathanprozzi
added a commit
that referenced
this pull request
Nov 14, 2024
- 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`
0xjojikun
pushed a commit
that referenced
this pull request
Nov 15, 2024
- 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`
0xjojikun
pushed a commit
that referenced
this pull request
Nov 22, 2024
- 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`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Affected Packages
Apps
Packages
Tools
Overview
template
playground routes that leverages fetchinginitialData
on the server and then passing the initial data to a client-side hook that uses the samequeryKey
. We can use this pattern when we have aloader
(we won't be able to within modals where we'd fall back to using 100% client-side hooks instead)<HydrationBoundary/>
into the root/providers so that we don't need to keep adding that boilerplateScreen Captures
Declaration