“I know I can use lambda expression and update mutablestate value in ShowCases compose but in such cases I don’t want to use that solution.”
• why not?
a
Abdullah
08/11/2023, 3:00 PM
for example when user swipe the view and click the item, I close(collapse) the view for user in the repo https://github.com/akardas16/SwipeActions To do that I need to change isExpand mutablestate value from user in my SwipeActionRight compose
Abdullah
08/11/2023, 3:01 PM
I used viewmodel observe for that because of that issue
v
Vlad
08/11/2023, 5:31 PM
That library and its SwipeActionsRight exact #1 reason to not couple composables with view models. Just hoist data/callbacks