@dotcms/react 1.5.5-next.2323 → 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "1.5.5-next.2323",
3
+ "version": "1.5.5-next.2332",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18"