File manager - Edit - /home/boiitech111/autorollingright.com/wp-content/plugins/extendify/src/Launch/hooks/useSiteQuestions.js
Back
import useSWRImmutable from 'swr/immutable'; import { getSiteQuestions } from '@launch/api/DataApi'; import { useSiteProfile } from '@launch/hooks/useSiteProfile'; 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), }; };
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings