Can anyone share some example of using Kodein v7 w...
# kodein
e
Can anyone share some example of using Kodein v7 with scopes? I didn’t find any in the repository and documentation is confusing sometimes. It looks like I am missing something very basic, since I don’t follow this code in the doc:
Copy code
val user by di.on(session).instance()
I understand that this should do and what it means. But in real life the
session
will be nullable and I can’t get user before I get a new session. Looks like I can’t just “open” the scope once the user is authorized, I have to specify the
session
each time which is very inconvenient if it’s nullable.