Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 2.29 KB

File metadata and controls

42 lines (25 loc) · 2.29 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Changed

  • Bump @metamask/utils from ^11.9.0 to ^11.11.0 (#9074)
  • Make react-dom and react-native peer dependencies optional (#9295)

Fixed

  • Keep actively observed queries when a data service removes its cache entry (#9490)
    • Data services garbage-collect their internal cache entries (which never have observers) cacheTime after each fetch, publishing a removed cache event. Previously createUIQueryClient honoured that event by removing the UI-side query even while components actively observed it — an operation unsupported by TanStack Query — so mounted consumers whose refetch interval met or exceeded the service-side cacheTime lost their data on a timer. removed events now only remove queries with no observers; observed queries keep their data and refetch on their own schedule.

Changed

  • Bump @metamask/base-data-service from ^0.1.0 to ^0.1.3 (#8317, #8755, #8799)

Added

  • Allow passing additional configuration options to createUIQueryClient (#8295)
  • Move data service specific query configuration to hooks instead of QueryClient defaults (#8296)

Added