Skip to content

Releases: trojanowski/react-apollo-hooks

v0.5.0

09 Jul 16:07
Compare
Choose a tag to compare

Features

  • useQuery: returns stale as a part of useQuery. (682be73), closes #91

  • useMutation returns tuple with result (e0d05fd)

  • Allow cache-and-network in 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

06 Apr 12:29
Compare
Choose a tag to compare

Performance Improvements

v0.4.4

25 Mar 11:40
Compare
Choose a tag to compare

Bug Fixes

  • when there is an error the query returns with the previous data instead of empty data (#100) (583da31)

v0.4.3

01 Mar 16:02
Compare
Choose a tag to compare

Features

  • useQuery, useMutation: accept client option (#95) (0ba17aa)

v0.4.2

27 Feb 07:34
Compare
Choose a tag to compare

Features

  • useSubscription: add skip option (#98) (8670f7f)

v0.4.1

22 Feb 11:46
Compare
Choose a tag to compare

Features

v0.4.0

13 Feb 22:29
Compare
Choose a tag to compare

Bug Fixes

Chores

  • update React peer dependency to ^16.8.0 (#78) (56abacc)

Features

  • getMarkupFromTree: add onBeforeRender handler (#64) (ba2af83)
  • useQuery: change default value for the suspend option to false (#80) (8e34e01)
  • useQuery: combine GraphQL errors in single ApolloError (#58) (18afba5)
  • useQuery: forward networkStatus for queries not using suspense (fb22d06)

BREAKING CHANGES

  • useQuery: The default for the suspend option of useQuery is changed to false, 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 error property in the object returned by useQuery. It may be breaking for you if you use the presence of it to differentiate between network and GraphQL errors.

v0.3.1

25 Jan 08:40
Compare
Choose a tag to compare

Bug Fixes

  • notifyOnNetworkStatusChange defaults to false (#61) (4da7d2d), closes #59

v0.3.0

16 Jan 22:20
Compare
Choose a tag to compare

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
  • useApolloClient throws if the client is not available in the context instead of returning null

v0.2.1

30 Nov 16:28
Compare
Choose a tag to compare

Bug Fixes

  • add graphql to peer dependencies (9488383)