admin: retry after "connection error"

Massimo Melina committed Jul 12, 2023 at 16:48 UTC 5979c6bd5bd47b94ba97dec28ffe910264e8f2b3
1 file changed +1
admin/src/api.ts
+1
@@ -61,6 +61,7 @@ export function useApiList<T=any>(cmd:string|Falsy, params: Dict={}, { map=((x:a
61 return setTimeout(() => apply.flush()) // this trick we'll cause first entries to be rendered almost immediately, while the rest will be subject to normal debouncing
62 case 'error':
63 setError("Connection error")
64 + setTimeout(reload, 1000)
65 return stop()
66 case 'closed':
67 return stop()