Hi! Let's say one of my modules has a `singleton`...
# kodein
d
Hi! Let's say one of my modules has a
singleton
binding to the object
Session
which can return a currently logged in
userId
. Now I want to create a binding which would return me a new
UserProfile(userId)
and it would return a new one only for different userIds. Which binding function should I use for this? I suspect I need to create a
Scope
and use a
scopedSingleton
, am I right? (if yes, I'll have a follow up question)