@parhelia/core 0.1.12072 → 0.1.12089

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.
@@ -1698,13 +1698,14 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
1698
1698
  }
1699
1699
  }
1700
1700
  else if (historyMode !== "global" && currentItemDescriptor) {
1701
+ // Always load immediately for page-centric/current-version/timeline so we don't show
1702
+ // an empty history list for the debounce window (e.g. 600ms). The effect only runs on
1703
+ // mode or item id/lang/version change, not on every keystroke, so this avoids flaky
1704
+ // undo/redo tests and improves UX when switching to page-centric.
1701
1705
  if (!historyInitialLoadDoneRef.current) {
1702
1706
  historyInitialLoadDoneRef.current = true;
1703
- refreshHistoryRef.current(historyMode);
1704
- }
1705
- else {
1706
- debouncedRefreshHistoryRef.current(historyMode);
1707
1707
  }
1708
+ refreshHistoryRef.current(historyMode);
1708
1709
  }
1709
1710
  else if (historyMode !== "global" && !currentItemDescriptor) {
1710
1711
  // Clear history if no item loaded in page-centric modes