@flamingo-stack/openframe-frontend-core 0.0.307 → 0.0.308
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-3LVKDW3J.js} +3 -1
- package/dist/{chunk-4YV5U7GA.js.map → chunk-3LVKDW3J.js.map} +1 -1
- package/dist/{chunk-XXFATUTH.cjs → chunk-L2RN7PCL.cjs} +3 -1
- package/dist/chunk-L2RN7PCL.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 +10 -0
- package/dist/chunk-XXFATUTH.cjs.map +0 -1
|
@@ -1208,6 +1208,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1208
1208
|
const result2 = await response.json().catch(() => ({}));
|
|
1209
1209
|
if (path !== lastFetchedPath.current) return;
|
|
1210
1210
|
if (path === folderIndexFile && selectedPath === "") {
|
|
1211
|
+
lastFetchedPath.current = null;
|
|
1211
1212
|
setError(null);
|
|
1212
1213
|
setContent(null);
|
|
1213
1214
|
return;
|
|
@@ -1219,6 +1220,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
1219
1220
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
1220
1221
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
1221
1222
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
1223
|
+
lastFetchedPath.current = null;
|
|
1222
1224
|
setError(null);
|
|
1223
1225
|
setContent(null);
|
|
1224
1226
|
return;
|
|
@@ -1853,4 +1855,4 @@ export {
|
|
|
1853
1855
|
EmbedSkeleton,
|
|
1854
1856
|
DocsHubPage
|
|
1855
1857
|
};
|
|
1856
|
-
//# sourceMappingURL=chunk-
|
|
1858
|
+
//# sourceMappingURL=chunk-3LVKDW3J.js.map
|