9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
export const useAccounts = () => useFetch(
|
|
"/api/accounts",
|
|
{
|
|
transform: (input) => input === undefined ? false as any as null: input,
|
|
getCachedData(key, nuxtApp) {
|
|
return nuxtApp.payload.data[key];
|
|
},
|
|
}
|
|
);
|