Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > > src > PageCreator > pages
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Dashboard.jsx | File | 4555 bytes | May 12 2025 16:42:28. | |
GeneratingPage.jsx | File | 3708 bytes | July 16 2025 19:39:24. | |
MainPage.jsx | File | 1050 bytes | April 22 2025 21:31:24. |
import { useState } from '@wordpress/element'; import { RetryNotice } from '@page-creator/components/RetryNotice'; import { usePagesStore } from '@page-creator/state/pages'; import { SWRConfig } from 'swr'; export const MainPage = ({ insertPage }) => { const [retrying, setRetrying] = useState(false); const { component: CurrentPage } = usePagesStore((state) => state.getCurrentPageData(), ); const page = () => { if (!CurrentPage) return null; return <CurrentPage insertPage={insertPage} />; }; return ( <SWRConfig value={{ errorRetryInterval: 1000, onErrorRetry: (error, key, config, revalidate, { retryCount }) => { console.error(error); if (error?.data?.status === 403) { // if they are logged out, we can't recover window.location.reload(); return; } if (retrying) return; setRetrying(true); setTimeout(() => { setRetrying(false); revalidate({ retryCount }); }, 5000); }, }}> {page()} <RetryNotice show={retrying} /> </SWRConfig> ); };
SILENT KILLER Tool