-
Bug
-
Resolution: Fixed
-
Neutral
-
1.0.6
-
None
-
Empty show more show less
-
HL & LD 33
-
2
Steps to reproduce
Consider following code:
function Home(props) { const [showArea, setShowArea] = useState(false); const { title, main, metadata } = props; setTimeout(() => setShowArea(true), 5000); return ( <div> <h1>{title}</h1> {showArea && <EditableArea content={main} parentTemplateId={metadata['mgnl:template']} />} </div> ); }
When an editable area is added the update is not bubbled up to the parent editable page and the refresh method is not called.
Expected results
Gree bars are added to the area.
Actual results
No green bars added to the area.
Workaround
useEffect(() => { EditorContextHelper.refresh(); }, [showArea]);
Development notes
Acceptance criteria