404, how do I create a koin application in a @Prev...
# koin
r
Copy code
fun ConfigureScreenPreview() {
    KoinApplication(application = { modules(commonModules) }) {
still yeets
Copy code
java.lang.ClassNotFoundException: org.koin.core.error.KoinAppAlreadyStartedException
a
for a preview look at
KoinApplicationPreview
from Koin 4.1 it should avoid that
k
i've recently started using koin in previews, and with interactive previews i am able to run fair amount of the actual viewmodel code without needing to deploy to device - makes for much tighter development loop ❤️
🙏 1
❤️ 1