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