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

2.2.2

Compare
Choose a tag to compare
@hwillson hwillson released this 28 Sep 11:39
· 1201 commits to master since this release

2.2.2 (September 28, 2018)

  • When using React.createContext and SSR, we now make sure the context
    provider value is reset to the previous value it had after its children are
    walked.
    @mitchellhamilton in #2304
  • Revert:
    When a query failed on the first result, the query result data was being
    returned as undefined. This behavior has been changed so that data is
    returned as an empty object. This makes checking for data (e.g.
    instead of data && data.user you can just check data.user) and
    destructring (e.g. { data: { user } }) easier. Note: this could
    potentially hurt applications that are relying on a falsey check of data
    to see if any query errors have occurred. A better (and supported) way to
    check for errors is to use the result errors property.
    #1983