Load communication reports asynchronously
This solves some problems created by making the publicreport part of the communication API consistent. There are a lot of optimizations still on the table with this one, but for now I need to get this out.
This commit is contained in:
parent
6e3d079c46
commit
b68d93ec91
12 changed files with 184 additions and 233 deletions
|
|
@ -63,6 +63,8 @@ export const useStorePublicReport = defineStore("publicreport", () => {
|
|||
} catch (err) {
|
||||
console.error("Error loading users:", err);
|
||||
throw err;
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
}
|
||||
async function update(
|
||||
|
|
@ -81,5 +83,7 @@ export const useStorePublicReport = defineStore("publicreport", () => {
|
|||
fetchByID,
|
||||
fetchByURI,
|
||||
update,
|
||||
// State
|
||||
loading,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue