Also, given the provider above I’ve expected the f...
# kodein
m
Also, given the provider above I’ve expected the following to retrieve the current instance every time I use the variable
authentication
. But it looks like that the result is cached in the delegate (
AuthenticationHolder.authentication
can change). Is there any way to tell the delegate to always ask for the current instance from the provider? I don’t want to use
.provider()
on the retrieval side to make it a function. That’s supposed to be transparent.
r
I should run some tests to answer properly, sorry 😕
m
No worries. I’ve refactored it completely by now. It just happens to be one of the unexpected quirks I came across when using Kodein more and more :)