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:
parent
fa081666ec
commit
f3e7c98994
2 changed files with 10 additions and 6 deletions
|
|
@ -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} />;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue