PATH:
home
/
bkunreyz
/
ezdatarecovery.net
/
wp-content
/
plugins
/
extendify
/
src
/
Launch
/
hooks
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), }; };
[-] useConfetti.js
[edit]
[-] useHomeLayouts.js
[edit]
[-] useFetch.js
[edit]
[-] useSitePlugins.js
[edit]
[-] useTelemetry.js
[edit]
[+]
..
[-] useSiteImages.js
[edit]
[-] useSiteProfile.js
[edit]
[-] usePreviewIframe.js
[edit]
[-] useSiteStyles.js
[edit]
[-] useWarnOnLeave.js
[edit]
[-] useSiteStrings.js
[edit]
[-] useIsMounted.js
[edit]
[-] useSiteLogo.js
[edit]
[-] useSiteQuestions.js
[edit]