Skip to main content
Solved

Getting all variants (JS SDK)

  • May 6, 2022
  • 1 reply
  • 383 views

Forum|alt.badge.img
  • New Member
  • 1 reply

Hi!

According to the docs there is a method on the ExperimentClient class - all() - that returns all variants for the deployment. I’ve tried using this (after having fetched all variants from the server) but it just makes the thread hang.

SDK version is the latest (1.5.0).

 

Best answer by rwv

Turns out there was something else attempting to read all() the variants before the fetching was done. The docs around this are rather poor so maybe this should be flagged somewhere.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • Answer
  • May 11, 2022

Turns out there was something else attempting to read all() the variants before the fetching was done. The docs around this are rather poor so maybe this should be flagged somewhere.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings