Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Tweak renderToStringWithData API, add updateQuery and bug fixes

Compare
Choose a tag to compare
@jbaxleyiii jbaxleyiii released this 06 Sep 00:19
· 2626 commits to master since this release

Breaking

// old
renderToStringWithData(component).then(markup) // markup had a script tag

// new

renderToStringWithData(component).then({ markup, initialState }) // markup has no tag, and state is passed

Features

  • Feature: Removed client as a prop and fixed warnings when not using ApolloProvider #189
  • Feature: Added updateQuery to data props

Bugs

  • Bug: Fixed renderToStringWithData causing react warning #169
  • Bug: Fixed ssr fragment issue #178
  • Bug: Fixed loading state for skipped queries #190
  • Bug: Fixed loading state on remounted component with different variables