I'm struggling with how to divide my business logic and ui code in my desktop app. I'm making a file manager app using compose so theres really only one screen. Voyager has a nice API but im not sure how to effectively use it with just one screen. I might be overthinking how to set it up. Right now i just have global variables as a temporary solution
10/01/2023, 11:52 PM
Voyager is mostly for navigation, its screen model doesn’t really offer much if you’re not needing the backstack capabilities to tie it to.
But if you’ve outgrown the core state management capabilities of Compose, or just want a better way to manage and test that logic, you should consider adopting a proper state management library like Ballast (disclaimer, I’m the author). As a bonus, if you find you like the API and then find you need navigation, Ballast offers that too
10/02/2023, 4:11 AM
oh I remember looking at this library. only thing I disliked was the string style navigation but ill try it out