apps/meteor/client/views/marketplace/hooks/useAppInfo.ts
Function useAppInfo
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useAppInfo = (appId: string, context: string): AppInfo | undefined => {
const { installedApps, marketplaceApps, privateApps } = useContext(AppsContext);
const [appData, setAppData] = useState<AppInfo>();
Function fetchAppInfo
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchAppInfo = async (): Promise<void> => {
if ((!marketplaceApps.value?.apps?.length && !installedApps.value?.apps.length && !privateApps.value?.apps.length) || !appId) {
return;
}