Releases: trojanowski/react-apollo-hooks
Releases · trojanowski/react-apollo-hooks
v0.5.0
Features
-
useQuery: returns
staleas a part ofuseQuery. (682be73), closes #91 -
useMutation returns tuple with result (e0d05fd)
-
Allow
cache-and-networkin apollo-client@^2.6.0 (#169) (74cce42), closes #169
BREAKING CHANGES
- useMutation returns tuple with result instead of just returning a mutating function
- now Apollo Client >= 2.6.0 is required to use this library
v0.4.5
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
Bug Fixes
Chores
Features
- getMarkupFromTree: add
onBeforeRenderhandler (#64) (ba2af83) - useQuery: change default value for the
suspendoption tofalse(#80) (8e34e01) - useQuery: combine GraphQL errors in single ApolloError (#58) (18afba5)
- useQuery: forward
networkStatusfor queries not using suspense (fb22d06)
BREAKING CHANGES
- useQuery: The default for the
suspendoption ofuseQueryis changed tofalse, and that hook no longer uses suspense by default. Suspense for data fetching is not recommended yet for production code. Please look at the issue #69 for details. - minimum supported (and tested) version of React is now 16.8.0
- useQuery: if there are GraphQL errors in the response, you'll also have
errorproperty in the object returned byuseQuery. It may be breaking for you if you use the presence of it to differentiate between network and GraphQL errors.
v0.3.1
v0.3.0
Bug Fixes
- update React peer dependency (51b3435)
Code Refactoring
Features
- useQuery: implement
skip(#42) (873e7de) - useQuery: use Apollo client state as the main source of truth (#47) (5ed243d)
- implement SSR (#44) (664edc2)
BREAKING CHANGES
- minimum supported (and tested) version of React is now 16.8.0-alpha.1
useApolloClientthrows if the client is not available in the context instead of returning null