Show a "Refresh" button to if the content is stale

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
Dominik Henneke
2021-07-05 14:07:44 +02:00
parent 3af126cddf
commit 136a919748
5 changed files with 73 additions and 10 deletions
+5
View File
@@ -148,6 +148,11 @@ createDevApp()
<TabbedLayout.Route path="/stale" title="Stale">
{createPage({
entityDocs: ({ called, content }) => {
return called === 0
? content
: content.replace(/World/, 'New World');
},
syncDocs: () => 'updated',
syncDocsDelay: 2000,
})}