https://www.growthbook.io/ logo
b

brash-fireman-45530

05/08/2023, 11:23 AM
Hi team, I'm seeing an issue with the visual editor 2.0. I created an experiment but it works in some browsers and doesn't in some. On browsers I've tested, it works in brave, safari and not in firefox and chrome. If I use the preview link it works on all browsers.
f

fresh-football-47124

05/08/2023, 1:59 PM
can you give more details when you say “doesnt’ work”?
b

brash-fireman-45530

05/08/2023, 2:01 PM
the experiment has some DOM mutations, those don't get applied
if I log
growthbook
I can see the experiment in the
_assigned
property
f

fresh-football-47124

05/08/2023, 2:49 PM
interesting that it would work with the preview url but not the live experiment
what is the tech stack?
b

brash-fireman-45530

05/08/2023, 2:50 PM
react
Growthbook is instantiated using
useMemo
, it's done as such because of some data dependancy.
Copy code
const gb = useMemo(() => {
    if(!d) return

    return new GrowthBook({...})    
}, [d])
f

fresh-football-47124

05/09/2023, 1:09 PM
for efficiency
b

brash-fireman-45530

05/09/2023, 1:14 PM
no I meant this is how I'm instantiating it in my project, was wondering if it would be relevant
8 Views