Refactor user storage and update
Rename accounts to users to be consistent with the new naming scheme where account only referes to the logged in user of the session and implement live updates of users via a user store which listens for updates from the event stream.
This commit is contained in:
parent
6336ccdb96
commit
3be7f8be05
24 changed files with 331 additions and 182 deletions
|
@ -1,10 +0,0 @@
|
|||
export const useAccounts = () => useFetch(
|
||||
"/api/accounts",
|
||||
{
|
||||
transform: (input) => input === undefined ? false as any as null: input,
|
||||
getCachedData(key, nuxtApp) {
|
||||
return nuxtApp.payload.data[key];
|
||||
},
|
||||
dedupe: "defer",
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue