Open buterbread1996 opened 1 week ago
Hello @buterbread1996 ! Thanks for reporting this issue. We've changed the logic of entering into circular loop.
Could you please try issues/81
SNAPSHOT?
https://jitpack.io/#growthbook/growthbook-sdk-java/issues~81-SNAPSHOT
Hi, @buterbread1996. Did you try that SNAPSHOT?
The current
growthbook.sdk.java.GrowthBook
implementation can't be used like bean in Spring, because it reuse agrowthbook.sdk.java.FeatureEvaluator#featureEvalContext
without clearing. So in the first callgrowthBook.isOn(featureKey)
returns right value, but in the next calls it returnsfalse
value always, because all calls (expect the first one) are interpretered like "circular dependency". ThefeatureEvalContext
is reseted only bygoOutFromCircularLoop
method that is called only in one place - when the force rule is applied.I don't know what logic did you want to implement, but current logic looks like some strange.