feeds-fun
Version:
Frontend for the Feeds Fun — web-based news reader
15 lines (11 loc) • 333 B
text/typescript
import {defineStore} from "pinia";
import {computedAsync} from "@vueuse/core";
import * as api from "@/logic/api";
export const useIntegrationsStore = defineStore("integrationsStore", () => {
const integrations = computedAsync(async () => {
return await api.getIntegrations();
}, []);
return {
integrations
};
});