is there any way to make the browser <script&gt...
# ask-questions
r
is there any way to make the browser <script> SDK to work well with an SSR react framework like remix and its hydration? currently the hydration overwrites the visual editor changes with a flicker and reverts to control
f
hrmm
what kind of experiments? using the visual editor?
r
yeah, currently only the visual editor
f
that should watch for dom changes, and put it back
how is it targeting the dom elements? are the class names dynamic?
r
no dynamic class names that i can see, for instance
Copy code
"selector":".w-full [data-is-open=\"false\"]:nth-child(3)",
but i see there are more changes than i need in there, i'll try removing the ones that are there by mistake
didn't make a difference
f
are you able to use that same selector to select the element after the hydration?
r
yeah
is the script SDK + visual editor supposed to work with for instance remix and ssr? in that case i can see if i have an issue elsewhere
f
it is supposed to work
thats what we built it for
might be worth opening a github issue or emailing support@ with this
r
got it, thanks!