All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.5.0 (2019-07-09)
-
useQuery: returns
stale
as a part ofuseQuery
. (682be73), closes #91 -
useMutation returns tuple with result (e0d05fd)
-
Allow
cache-and-network
in apollo-client@^2.6.0 (#169) (74cce42), closes #169
- useMutation returns tuple with result instead of just returning a mutating function
- now Apollo Client >= 2.6.0 is required to use this library
0.4.5 (2019-04-06)
0.4.4 (2019-03-25)
- when there is an error the query returns with the previous data instead of empty data (#100) (583da31)
0.4.3 (2019-03-01)
0.4.2 (2019-02-27)
0.4.1 (2019-02-22)
0.4.0 (2019-02-13)
- getMarkupFromTree: add
onBeforeRender
handler (#64) (ba2af83) - useQuery: change default value for the
suspend
option tofalse
(#80) (8e34e01) - useQuery: combine GraphQL errors in single ApolloError (#58) (18afba5)
- useQuery: forward
networkStatus
for queries not using suspense (fb22d06)
- useQuery: The default for the
suspend
option ofuseQuery
is 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
error
property 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.
0.3.1 (2019-01-25)
0.3.0 (2019-01-16)
- update React peer dependency (51b3435)
- useQuery: implement
skip
(#42) (873e7de) - useQuery: use Apollo client state as the main source of truth (#47) (5ed243d)
- implement SSR (#44) (664edc2)
- 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
0.2.1 (2018-11-30)
- add graphql to peer dependencies (9488383)
0.2.0 (2018-11-30)
- cache queries for not-mounted yet components. It fixes problems with infinite loops after error occurred. (246208c), closes #23
- remove no longer needed
warning
dependency (0c4459b) - update React peer dependency (768d851)
- remove deprecated methods (a601691)
- minimum supported (and tested) version of React is now 16.7.0-alpha.2
useApolloQuery
anduseApolloMutation
are removed. Please useuseQuery
anduseMutation
instead.
0.1.8 (2018-11-29)
- typescript: parametrize
update
option ofuseMutation
hook (f8d6c26)
0.1.7 (2018-11-27)
0.1.6 (2018-11-13)
- typescript: add
notifyOnNetworkStatusChange
andpollInterval
touseQuery
options in TypeScript definitions (f2db5b3), closes #18
0.1.5 (2018-11-10)
- typescript: make
suspend
option ofuseQuery
hook optional (7e776a6)
0.1.4 (2018-11-10)
- allow to use
useQuery
hook without suspense (db119e5)
0.1.3 (2018-11-08)
- add useQuery and useMutation hooks; deprecate useApolloQuery and useApolloMutation (e769f94), closes #6 #9