Hi everyone, I use inline experiments in a next.js...
# announcements
n
Hi everyone, I use inline experiments in a next.js application and wondering whether there is a way to get all the active variations/experiments in the given page. I need to send the list of all active experiments to mixpanel with every tracking event
f
Yes, there is a
getAllResults
method you can use for that. It returns a map indexed by tracking key.
n
Thanks @future-teacher-7046, I assume I need to run it on the growthbook instance, but when trying to get that using this I get an error saying that No useGrowthBook is exported from
@growthbook/growthbook-react
f
Hmm. What version of the react SDK do you have?
n
0.5.0
f
The latest version is 0.7.0. I think that hook was released after 0.5.0
n
Ok, thanks a lot.
getAllResults
does what I need