Closed joreilly closed 2 years ago
@joreilly Thanks for raising this bug. 🌮
The issue was due to remembering the JetLimeItem which was basically making the composable stateful rather than stateless. Thanks for pointing the issue out!
The issue is now fixed in v1.0.3
.
Also added:
JetLimeItemsModel
can be updatedenableItemAnimation
property has been added in JetLimeViewConfig
to disable the item placement animation (by default set as false)Here is the sample: https://user-images.githubusercontent.com/19844292/153912686-93b9d098-8bc8-4a7a-b969-cc598273d564.mp4
Hi, I'm having issue where UI isn't updating when I create new
JetLimeItemsModel
in response to some data being updated...I have made changes locally that seems to fix it but not sure if there are other ramifications of making that change.So, firstly this is more or less what I have
I'm seeing that when
nextStopRef
changes (with resultant change to model) the UI is not updating (to show animation for that stop). Issue seems to be related to following code inJetLineView
.If I replace
jetLimeItem.value
with justitem
above then recomposition seems to work correctly when the model value changes.