Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ma...@google.com <ma...@google.com>
le...@google.com <le...@google.com>
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
Description
Component used: androidx.paging:paging-compose
Version used: 3.2.1
Devices/Android versions reproduced on: N/A
PageSize.Fixed
needs to be marked@Stable
(and probably adata class
). Currently it will cause recomposition of thePager
if recomposition starts above thePager
and you usePageSize
in a way that it gets compared for stability.The relevant line is here .
Example snippet (you'll need ):
recomposeHighlighter
In my specific use case, it made sense to
remember
thePageSize.Fixed
, because I was using a dynamic calculation based on the screen width, so that's how I found and worked around this bug.