7e0f2e4449
The fetchData function suffer from a race condition. If the function is called before the promise finishes, it will result in another pair of HTTP request. This does not only make the function useless but Actually, it makes it harmful as the data might be redownloaded twice. Now fetchData is not a function but rather the promise by itself. Previous callers are expected to await the variable instead, this should be not concern as awaiting a promise multiple time in JavaScript is completely safe. |
||
---|---|---|
.github | ||
assets | ||
content | ||
data | ||
layouts | ||
static | ||
.gitignore | ||
.hugo_build.lock | ||
CODE_OF_CONDUCT.md | ||
config.toml | ||
LICENSE.txt | ||
Makefile | ||
README.md | ||
screenshot.png |
Quartz
Host your second brain and digital garden for free. Quartz features
- Extremely fast full-text search by pressing
/
- Display for backlinks of each note
- Fully customizable local graph view
- Endlessly powerful page and theme customization using CSS
- Automatically generated tag and section lists of content
- Beautiful link previews
“[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
🔗 Get Started: https://quartz.jzhao.xyz/