Skip to content

v2.2.0

Choose a tag to compare

@ANeaves ANeaves released this 18 May 12:56
d2f978b

What's Changed

This Release changes the template of the AdapterEndpoint object, removing some unused properties and simplifying functionality.

This will be a breaking change if your project uses any of the following properties or methods returned by useAdapterEndpoint

  • error: No longer needed, use the errors from useError if required
  • updateFlag: Components that used this flag to monitor updates now use the data itself, thanks to Tanstack Query's caching
  • status: Unused
  • refreshData and mergeData: Methods no longer required due to the Tanstack Query caching mechanism.

Additionally, the data and metadata objects from the hook can be undefined, if there are connection issues or when first mounted. Your IDE may complain if you do not check for this.

Full Changelog: v2.1.2...v2.2.0