https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

brief-potato-99329

12/28/2023, 4:20 PM
Hello! What approach would you recommend to experiment first screen variations in React application (starting the flow from /first-page-route-control or /first-page-route-experiment)? I tried several solutions with a timeout and async await but I still miss setting of experiment variation sometimes when feature is false. So, I try to wait for features to be loaded and then check it and redirect to the needed route.
So, as you can see sometimes I get variation 0 in console, sometimes not.
f

fresh-football-47124

12/28/2023, 4:21 PM
You're doing a redirect test?
b

brief-potato-99329

12/28/2023, 4:21 PM
yes, for the first screen
I am using react-router-dom
I created the main route and redirect from it to the needed page depending on variation
f

fresh-football-47124

12/28/2023, 4:55 PM
you could use an inline experiment, to avoid that network call
or use the proxy
4 Views