@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.
- package/dist/{chunk-4YV5U7GA.js → chunk-BPPCLTF2.js} +6 -1
- package/dist/{chunk-4YV5U7GA.js.map → chunk-BPPCLTF2.js.map} +1 -1
- package/dist/{chunk-XXFATUTH.cjs → chunk-JTS552SA.cjs} +6 -1
- package/dist/chunk-JTS552SA.cjs.map +1 -0
- package/dist/components/docs/index.cjs +2 -2
- package/dist/components/docs/index.js +1 -1
- package/dist/components/docs/use-document-tree.d.ts.map +1 -1
- package/dist/components/index.cjs +88 -88
- package/dist/components/index.js +1 -1
- package/package.json +1 -1
- package/src/components/docs/use-document-tree.ts +20 -0
- package/dist/chunk-XXFATUTH.cjs.map +0 -1
|
@@ -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-
|
|
1861
|
+
//# sourceMappingURL=chunk-BPPCLTF2.js.map
|