# extendify/3.1.1/src/Launch/hooks/useSitePlugins.js

Extendify, version 3.1.1. 22 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.1/code/src/Launch/hooks/useSitePlugins.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.1/raw/src/Launch/hooks/useSitePlugins.js
- Modified: 2026-02-18T22:27:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.1/code/src/Launch/hooks/useSitePlugins.js#L10-L20`.

```javascript
import { getSitePlugins } from '@launch/api/DataApi';
import { useSiteProfile } from '@launch/hooks/useSiteProfile';
import { useUserSelectionStore } from '@launch/state/user-selections';
import useSWR from 'swr';

export const useSitePlugins = ({ disableFetch = false } = {}) => {
	const { loading, siteProfile } = useSiteProfile();
	const { siteQA } = useUserSelectionStore();

	const params = {
		key: 'site-plugins',
		siteProfile,
		siteQA,
	};
	const { data, error } = useSWR(
		loading || disableFetch ? null : params,
		getSitePlugins,
	);

	return { sitePlugins: data, error, loading: !data && !error };
};

```
