This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
2.2.2
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 resultdata
was being
returned asundefined
. This behavior has been changed so thatdata
is
returned as an empty object. This makes checking for data (e.g.
instead ofdata && data.user
you can just checkdata.user
) and
destructring (e.g.{ data: { user } }
) easier. Note: this could
potentially hurt applications that are relying on a falsey check ofdata
to see if any query errors have occurred. A better (and supported) way to
check for errors is to use the resulterrors
property.
#1983