Any changes made in onHidden, doesn't re-trigger recomposition. #889
Replies: 3 comments 2 replies
-
This explain this issue even better. Notice
|
Beta Was this translation helpful? Give feedback.
-
Hello, @ankitfromcodefy. This isn't specific to markers — it generally relates to calling The
However, it's not entirely possible to achieve your desired behavior via extras. This means that the library doesn't support implementing such behavior at the moment. We will consider adding an API that makes this possible — I'm converting the issue to a discussion in "Ideas." |
Beta Was this translation helpful? Give feedback.
-
Hello again, @ankitfromcodefy. It turned out to be caused by the strong skipping mode enabled by default in Kotlin 2.0.20, and Vico 2.0.0-beta.2 fixes this. |
Beta Was this translation helpful? Give feedback.
-
How to reproduce
Scenerio
Observed behavior
As soon as user release figure
CartesianMarkerVisibilityListener
callbackonHidden
is called which change the state. However, the graph doesn't recompose itself and thepersistentMarkers
doesn't reset.i.e After the last state change, the view should recompose itself
Expected behavior
The state change in
onShown
method works as expected, however state change inonHidden
doesn't trigger recomposition.Solutions tries so far
rememberExtraLambda(showPersistentMarker)
instead ofremember(showPersistentMarker)
. Same resultpersistentMarkerIndex
as well. Same result and behaviour.Vico version(s)
3.0.0-alpha.28
Android version(s)
13
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions