From a3e5b6016c93a0fed31ceee8544e8c2a96ccf42c Mon Sep 17 00:00:00 2001 From: hwillson Date: Fri, 30 Aug 2019 08:25:18 -0400 Subject: [PATCH] Changelog update; code cleanup --- Changelog.md | 2 +- packages/hooks/src/__tests__/useQuery.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 8552f6f2d0..55ed0425ee 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,7 +11,7 @@ - Makes sure `refetch`, `fetchMore`, `updateQuery`, `startPolling`, `stopPolling`, and `subscribeToMore` maintain a stable identity when they're passed back alongside query results.
[@hwillson](https://github.com/hwillson) in [#3422](https://github.com/apollographql/react-apollo/pull/3422) - Fixed problematic re-renders that were caused by using `fetchMore.updateQuery` with `notifyOnNetworkStatusChange` set to true. When `notifyOnNetworkStatusChange` is true, re-renders will now wait until `updateQuery` has completed, to make sure the updated data is used during the render.
- [@hwillson](https://github.com/hwillson) in [#TODO](https://github.com/apollographql/react-apollo/pull/TODO) + [@hwillson](https://github.com/hwillson) in [#3433](https://github.com/apollographql/react-apollo/pull/3433) - Documentation fixes.
[@SeanRoberts](https://github.com/SeanRoberts) in [#3380](https://github.com/apollographql/react-apollo/pull/3380) diff --git a/packages/hooks/src/__tests__/useQuery.test.tsx b/packages/hooks/src/__tests__/useQuery.test.tsx index fe87154ecf..7f43893619 100644 --- a/packages/hooks/src/__tests__/useQuery.test.tsx +++ b/packages/hooks/src/__tests__/useQuery.test.tsx @@ -2,7 +2,7 @@ import React, { useState, useReducer } from 'react'; import { DocumentNode, GraphQLError } from 'graphql'; import gql from 'graphql-tag'; import { MockedProvider, MockLink } from '@apollo/react-testing'; -import { render, cleanup, wait, act } from '@testing-library/react'; +import { render, cleanup, wait } from '@testing-library/react'; import { useQuery, ApolloProvider } from '@apollo/react-hooks'; import { ApolloClient } from 'apollo-client'; import { ApolloLink, Observable } from 'apollo-link';