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

Fix getServerSnapshot #31

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Fix getServerSnapshot #31

merged 3 commits into from
Aug 30, 2023

Conversation

smartinio
Copy link
Contributor

Fixes #30 by passing getSnapshot to getServerSnapshot, similar to Apollo's fix linked in the original issue.

Added test-case (and verified it fails before the code-change) to prevent it from happening again.

@codesandbox
Copy link

codesandbox bot commented Aug 29, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@smartinio smartinio changed the title Fix get server snapshot Fix getServerSnapshot Aug 29, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 29, 2023

🦋 Changeset detected

Latest commit: 12932d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
statery Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@daveschumaker
Copy link
Contributor

Imported into my own Next JS v13 app and everything works within both client and SSR contexts. LGTM! Thanks so much for doing this.

@hmans
Copy link
Owner

hmans commented Aug 30, 2023

Looks great. Thank you very much for this fix!

@hmans hmans merged commit f18b084 into hmans:master Aug 30, 2023
1 check passed
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.

Statery is broken in Next.js
3 participants