https://www.growthbook.io/ logo
#announcements
Title
# announcements
q

quiet-monkey-7986

04/24/2023, 8:35 PM
Hi you all, I've been testing the visual editor with React and noticed that any changes I inject are lost after a rerender. Is there a way to re-inject these changes? I'd appreciate any help you can provide. Thanks!
f

future-teacher-7046

04/24/2023, 8:38 PM
Our visual editor tries to re-apply changes automatically after an external re-render (e.g. from React), as long as the element selector stays the same. However, for complex sites, there are definitely cases where it doesn't work as well. We recommend using feature flags and implementing changes in code for React and other single page apps whenever possible for the best user experience.
15 Views