• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle




  • You shouldn’t write your Composable like this, Composable shouldn’t have business logic in it.

    A Composable only describes the UI it represents, and it’s possible to be re-runned at any point in time. In the best case scenario, it should only display the states it received from an entity like a ViewModel and emit actions to the entity as well.

    So in your case, the zip opening things should be outside of the import() Composable depends on you application structure and updated string through a different means.