We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5538d9d commit a855996Copy full SHA for a855996
1 file changed
src/generators/web/ui/hooks/useOrama.mjs
@@ -27,7 +27,10 @@ export default pathname => {
27
if (!loaded.current) {
28
loaded.current = fetch(relativeOrAbsolute('/orama-db.json', pathname))
29
.then(response => response.ok && response.json())
30
- .then(data => load(db, data));
+ .then(data => load(db, data))
31
+ .catch(() => {
32
+ loaded.current = null;
33
+ });
34
}
35
36
return loaded.current;
0 commit comments