We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2dcc9 commit 6a1e895Copy full SHA for 6a1e895
src/mdx.ts
@@ -72,10 +72,9 @@ const isSupported = (
72
let getDocsFrontMatterCache: Promise<FrontMatter[]> | undefined;
73
74
export function getDocsFrontMatter(): Promise<FrontMatter[]> {
75
- if (getDocsFrontMatterCache) {
76
- return getDocsFrontMatterCache;
+ if (!getDocsFrontMatterCache) {
+ getDocsFrontMatterCache = getDocsFrontMatterUncached();
77
}
78
- getDocsFrontMatterCache = getDocsFrontMatterUncached();
79
return getDocsFrontMatterCache;
80
81
0 commit comments