@dotcms/react 1.5.5-next.2303 → 1.5.5-next.2332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,6 +96,11 @@ const useEditableDotCMSPage = pageResponse => {
|
|
|
96
96
|
useEffect(() => {
|
|
97
97
|
var _pageResponse$pageAss, _pageResponse$styleEd;
|
|
98
98
|
if (!getUVEState()) {
|
|
99
|
+
// Outside UVE, state only ever comes from props - keep it in sync with
|
|
100
|
+
// whatever pageResponse the parent re-renders with (e.g. after a client-side
|
|
101
|
+
// navigation refetches page data), since the initial useState value above is
|
|
102
|
+
// otherwise frozen after the first render.
|
|
103
|
+
setUpdatedPageResponse(pageResponse);
|
|
99
104
|
return;
|
|
100
105
|
}
|
|
101
106
|
if (!pageResponse) {
|