10 lines
219 B
TypeScript
10 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];
|
||
|
},
|
||
|
}
|
||
|
);
|