Room 2.6.1

2.6.1

Version 2.6.1

Changed 1
  • Exceptions thrown from PagingSource loads are now propagated as a LoadStateUpdate of LoadResult.Error containing the Throwable, observable through PagingDataAdapter.loadStateFlow(Views) or LazyPagingItems.loadState(Compose)
Fixed 1
  • Resolved issue in generated code where the default value for Double columns in EntityCursorConverter was being set to 0 instead of 0.0, with a similar fix for Float type columns

From Room

Bug Fixes: Resolved issue in generated code where the default value for Double columns in EntityCursorConverter was being set to 0 instead of 0.0. A potential fix for a similar edge-case for Float type columns has also been included. ( Id75f5, b/304584179) Exceptions thrown from PagingSource loads will now be propagated as a LoadStateUpdate of LoadResult.Error containing the Throwable. This error state is observable through PagingDataAdapter.loadStateFlow(Views) or LazyPagingItems.loadState(Compose). Note that this marks a behavioral change where in the past load errors will bubble up as an Exception thrown by the dao method that triggered the load. ( I93887, b/302708983)

View original

Upgraded? How did it go?

Discussion