react-apollo v3.1.1 Release Notes

Release Date: 2019-09-15 // over 4 years ago
  • ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘ป Calling startPolling or stopPolling after a component has unmounted is now a no-op (instead of throwing an exception). Polling is automatically stopped when a component is unmounted, so it doesn't need to be called manually. @hwillson in #3485
    • ๐Ÿ‘ Allow ignoreResults to be controlled through graphql and withMutation options. @tim-stasse in #3431
    • Be a bit more defensive when it comes to accessing the internal ObservableQuery instance, to avoid attempting to use it after a component has unmounted. @jfrolich in #3490

    ๐Ÿ› Bug Fixes

    • A fix has been applied to prevent an unchanging loading state when an error occurs after a refetch, that is the same as the previous error. @jet2jet in #3477
    • โž• Add back in the removed ChildDataProps and ChildMutateProps types. @hwillson in #3495
    • ๐Ÿ‘‰ Make sure onCompleted is called each time a useLazyQuery based query completes, after the execution function is called. @hwillson in #3497