Links, Wikipedia and the replica: duplicates merged, dead fields and caches out
- One failure(res) in api.ts for every fetch that can fail (session,
remote and the libraries calls each had their own; the error's
attached body was never read). Session's lost() and vanished() were
the same but for the hook: stop("foreign" | "gone").
- linker: place() locates the words with locate() instead of a copy;
the scan reply's type is written once; LinkRow.at was never read; the
"import" origin is never passed.
- wiki.ts: cleanHtml's cache could never hit (its only caller,
articleText, is cached on the same key and evicts the same way);
known() returned an article nobody read.
- Gone: currentLibrary and idbKeys (no callers), useWikiSuggest's q,
a node's link flag spelled out where isLink says it. Exports used only
in their own file are not exported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
3aa8778427
commit
52cb7c2065
11 files changed
+58
-99
No files matched your search
+1
-1
@@ -200,7 +200,7 @@ export function WikiView({ host }: { host: string }) {
|
||||
const art = article(h.title, h.lang);
|
||||
if (art.state !== "ready") {
|
||||
// While the article loads, a summary already at hand is shown at once.
|
||||
const have = known(h.title, h.lang).summary;
|
||||
const have = known(h.title, h.lang);
|
||||
return (
|
||||
<section class={`wiki${embedded ? " embedded" : ""}`} data-host={host}>
|
||||
<Head title={have?.title ?? h.title} focused={at({ t: "head" })} />
|
||||
|
||||
Reference in new issue
Block a user