grid: optimistic app install

Fixes urbit/landscape#1169
This commit is contained in:
Liam Fitzgerald 2021-09-22 13:51:53 +10:00
parent 05f6230d60
commit 1aa8f9a1e8

View File

@ -108,8 +108,8 @@ const useDocketState = create<DocketState>((set, get) => ({
if (!treaty) {
throw new Error('Bad install');
}
set((state) => addCharge(state, desk, { ...treaty, chad: { install: null } }));
if (useMockData) {
set((state) => addCharge(state, desk, { ...treaty, chad: { install: null } }));
await new Promise<void>((res) => setTimeout(() => res(), 10000));
set((state) => addCharge(state, desk, { ...treaty, chad: { glob: null } }));
}