Skip to content

v2.0.0

Compare
Choose a tag to compare
@ryanashcraft ryanashcraft released this 12 May 17:51
· 271 commits to master since this release

Refer to the v2 transition guide for instructions on how to upgrade from redux-query 1.x to 2.x.

  • Use the latest entities state when the network request finishes for mutations
  • Replace request fields in queries reducer and relevant actions with networkHandler
  • New, safer rollback behavior when mutations fail
  • New rollback option in query configs to handle reverting optimistic updates
  • New, optional reducer, errorsReducer, for tracking response bodies, text, and headers for failed queries
  • Change connectRequest to work around a race condition resulting in invalid warnings
  • Update to superagent 3.x
  • Avoid creating new functions in connectRequest's render function (acontreras89 #67)
  • Replace removeEntity and removeEntities actions with a more generic updateEntities action
  • Remove reconcileQueryKey and change getQueryKey to only accept query config objects as a parameter
  • Replace usage of deprecated react-addons-shallow-compare
  • Renamed "network adapters" to "network interfaces"
  • Some top-level exports have been removed or renamed (see v2 transition guide for more information)