General question on Koin in Java...I saw a weird s...
# koin
k
General question on Koin in Java...I saw a weird stack overflow when doing something like this: class Something { private OtherClass otherClass = get(OtherClass.class); void someFunction() { otherClass.method(); } } vs. class Something { void someFunction() { get(OtherClass.class).method(); } } Is one preferred over the other? The reason I ask is the first one can cause a stack overflow in Koin depending on how the graph is nested.
I managed to get a loop overflow in Koin because OtherClass' constructor needed to refer to class Something FYI.