Hi, got an issue with scopes : ```E/KOIN: [ERROR] ...
# koin
b
Hi, got an issue with scopes :
Copy code
E/KOIN: [ERROR] - Error while resolving instance for class 'com.x.domain.navigation.Navigator' - error: org.koin.error.NoScopeException: Definition 'Scope [name='Navigator',class='com.x.domain.navigation.Navigator']' has to be used with a scope. Please create and specify a scope to use with your definition
<- but navigator is scoped, it happend when we try to restart the current activity (with activity.finish() -> startActivity()), any idea ?
a
what version?
b
@arnaud.giuliani 1.0.2 (using the stable version)
a
Scope API in 1.0.2 is not good and has been revamped in 2.0 if you can migrate
b
the beta is really stable ? ’cause the project will be pushed to prod in days...
a
2.0-rc-1 published
close to stable ...
just check if we have big stuffs, but should be ok
b
ok, thx ! 🙂
Mmmh, @arnaud.giuliani we were using setProperty, but it seems it doesn’t exist anymore, how can we do now ?
We used to pass a specific view to display snackbars (for example) to display classes
a
you have setProperty in
getKoin()
We try to not have every thing at the same level in Koin instance
b
ok, seems legit, indeed !