Commit 840a03f2 authored by opgbaudouin's avatar opgbaudouin
Browse files

+ added extensions.json

parent 4c1a2b32
{
"recommendations": [
"dbaeumer.vscode-eslint",
"jpoissonnier.vscode-styled-components",
"eamodio.gitlens",
"esbenp.prettier-vscode"
]
}
......@@ -22,13 +22,13 @@ const fetchEntries = async versionStatus => {
//DELIVERY API QUERY END//
//DELIVERY API SEARCH START//
return await cachedSearch.search(query, 1); // More a legacy -> THE API now themselves cached? no real need. // 1 == linkDepth upto 9.
return await cachedSearch.search(query, 1); // More a legacy -> THE API now themselves cached? no real need. // 1 == linkDepth upto 9. OB: await is redun
//DELIVERY API SEARCH END//
} catch (error) {
throw new Error(error);
}
};
const entries = await triggerSearch(versionStatus);
const entries = await triggerSearch(versionStatus); // await is redun.
return entries;
};
......@@ -39,6 +39,7 @@ const BlogListing = ({ className }) => {
//const versionStatus = 'latest';
useEffect(() => {
fetchEntries(versionStatus).then(results => {
//reason not to use await?
setResults(results);
});
}, [versionStatus]);
......@@ -60,7 +61,7 @@ const BlogListing = ({ className }) => {
{resultsInfo && (
<div
className="resultsInfo"
dangerouslySetInnerHTML={{ __html: resultsInfo }}
dangerouslySetInnerHTML={{ __html: resultsInfo }} //resultsinfo is just text why html?
/>
)}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment