Skip to content
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

feat: adding better type support for hydration complete callback #12

Merged
merged 4 commits into from
Sep 23, 2022

Conversation

platypusrex
Copy link
Owner

This is an attempt to address the type support issue or lack thereof for the onHydrationComplete callback. The success results should now have solid type support. It no longer returns results in an array, but an object with the root property naming 1:1 with the operation name. If no hydration map type is provided to the instance of NextApolloClient, then type support will be somewhat limited.

@github-actions
Copy link

github-actions bot commented Sep 23, 2022

size-limit report 📦

Path Size
-32 B (0%)

@platypusrex platypusrex merged commit 9565e17 into master Sep 23, 2022
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.

1 participant