EntryChangeGroup
is an async component
Some of a history entry's changes (from to to, in review order), as its page shows them (#gwhubqn7).
import { ChangeBox, entryChanges, shareNow } from "#codebase/tcmts/share"; export async function EntryChangeGroup({ hash, from, to, }: { hash: string; from: number; to: number; }) { const s = shareNow(); if (!s.signedIn) return null; const items = s.cache.atHead(s.cb, `entry ${hash}`, () => entryChanges(s, hash))?.items ?? []; return ( <> {items.slice(from, to).map((i) => ( <ChangeBox key={i.path} item={i} /> ))} </> ); }