desktop reads: a card that joins a read or gets the 'read just now' answer applies it (no bus event for those: a tab opened again stayed on its skeleton); invalidate before a write's after-refresh, editor save re-reads with force

This commit is contained in:
CRTkafa 2026-10-23 11:21:51 +08:00
parent fa081666ec
commit f3e7c98994
2 changed files with 10 additions and 6 deletions

View file

@ -23,7 +23,7 @@ export function TabEditor({ tab, project }: { tab: AppTab; project: Project }) {
const r = useEditable(project);
if (!EDIT_TABS[tab]) return null;
if (!r.data) return r.error ? <ErrorNotice error={t('ed.loadFailed', { error: r.error })} tone="bad" /> : <Section><Skeleton lines={4} block /></Section>;
const p = { project, data: r.data, onSaved: () => { r.refresh(); } };
const p = { project, data: r.data, onSaved: () => { r.refresh(true); } };
switch (tab) {
case 'listings': return <ListingEditor {...p} />;
case 'appinfo': return <AppInfoEditor {...p} />;