Hello,trackingCallback only fires when i call isO...
# ask-questions
c
Hello,trackingCallback only fires when i call isOn or getFeatureValue, Is this a normal situation?
1
r
@blue-sundown-32899 has marked the issue as closed. Reopen Issue button
f
It will fire for both of those if the feature includes an experiment
but yes, it should only fire when a feature is evaluated
c
i call isOn the first time trackingCallback fire, the second time i call isOn ,it dose not fire?
image.png
f
I’m not sure about calling it twice for the same feature, I’d have to check the code to see if it checks for that
I imagine it may just fire it twice - what does it do if you run that?
c
only fire once
growthbook.isOn('test-bool-feature-1025') growthbook.getFeatureValue("test-json-feature-1025", "{}") two features like above , also fired once
b
Hello, I wanted to check in on this question you asked. Were you able to resolve it?
r
Hello, I'll close this ticket now, but if you need to re-open it for this same issue simply reply in the thread. Thanks!
c
has not been resolved
f
same issue?
we do some caching, so firing once is fine
c
my website is spa framework,spa maybe is the root cause
f
we work fine with single page apps - is the feature not updating correctly or are you concerned about the tracking callback event?
c
I have double checked.firing when open website the first time or reload website
f
are you targeting features that are page dependent? if so you may need to add a useEffect hook