@flamingo-stack/openframe-frontend-core 0.0.307 → 0.0.308-snapshot.20260623011730

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.
@@ -1144,6 +1144,9 @@ function useDocumentTree(config, initialPath) {
1144
1144
  }
1145
1145
  pathToFetch = firstDocPath;
1146
1146
  } else if (node && node.type === "folder" && node.hasReadme) {
1147
+ if (lastFetchedPath.current === selectedPath) {
1148
+ return;
1149
+ }
1147
1150
  pathToFetch = `${selectedPath}/${folderIndexFile}`;
1148
1151
  } else {
1149
1152
  pathToFetch = selectedPath;
@@ -1208,6 +1211,7 @@ function useDocumentTree(config, initialPath) {
1208
1211
  const result2 = await response.json().catch(() => ({}));
1209
1212
  if (path !== lastFetchedPath.current) return;
1210
1213
  if (path === folderIndexFile && selectedPath === "") {
1214
+ lastFetchedPath.current = null;
1211
1215
  setError(null);
1212
1216
  setContent(null);
1213
1217
  return;
@@ -1219,6 +1223,7 @@ function useDocumentTree(config, initialPath) {
1219
1223
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
1220
1224
  const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
1221
1225
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
1226
+ lastFetchedPath.current = null;
1222
1227
  setError(null);
1223
1228
  setContent(null);
1224
1229
  return;
@@ -1853,4 +1858,4 @@ export {
1853
1858
  EmbedSkeleton,
1854
1859
  DocsHubPage
1855
1860
  };
1856
- //# sourceMappingURL=chunk-4YV5U7GA.js.map
1861
+ //# sourceMappingURL=chunk-BPPCLTF2.js.map