Solved

Getting all variants (JS SDK)

  • 6 May 2022
  • 1 reply
  • 124 views

Badge

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).

 

icon

Best answer by rwv 11 May 2022, 14:22

View original

1 reply

Badge

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.

Reply