Skip to content

Conversation

@jackdclark
Copy link
Contributor

What does this PR do?

  • Makes graphql-hooks-ssr getInitialState throw if no cache is present in the client
  • Makes GraphQLClient throw if ssrMode is true & no cache is provided
  • Updates docs to reflect that client.cache is required in SSR mode
  • Adds regression tests

Related issues

Fixes #116

Checklist

  • I have checked the contributing document
  • I have added or updated any relevant documentation
  • I have added or updated any relevant tests

@jackdclark jackdclark requested review from Joezo and bmullan91 March 12, 2019 10:00
Copy link
Contributor

@bmullan91 bmullan91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@jackdclark jackdclark merged commit ece277d into master Mar 12, 2019
@jackdclark jackdclark deleted the fix/ssr-required-cache branch March 12, 2019 10:08
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.

3 participants