# extendify/3.0.4/src/Launch/hooks/useSiteQuestions.js

Extendify, version 3.0.4. 24 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.0.4/code/src/Launch/hooks/useSiteQuestions.js
- Raw: https://pluginprobe.com/plugins/extendify/3.0.4/raw/src/Launch/hooks/useSiteQuestions.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.0.4/code/src/Launch/hooks/useSiteQuestions.js#L10-L20`.

```javascript
import { getSiteQuestions } from '@launch/api/DataApi';
import { useSiteProfile } from '@launch/hooks/useSiteProfile';
import useSWRImmutable from 'swr/immutable';

export const useSiteQuestions = ({ disableFetch = false } = {}) => {
	const { siteProfile, loading: profileLoading } = useSiteProfile();

	const { data, error } = useSWRImmutable(
		profileLoading || !siteProfile || disableFetch
			? null
			: {
					key: 'site-questions',
					siteProfile,
				},
		getSiteQuestions,
	);

	return {
		questions: data,
		error,
		loading: profileLoading || (!data && !error),
	};
};

```
