I have suspense like this in the App file
<Suspense fallback={<DelayedFallback />}>
Then I have an useEffect/setTimeOut:
const DelayedFallback = () => {
const [loaded, setLoaded] = useState(false);
useEffect(() => {
setTimeout(() => setLoaded(true), 5000);
}, []);
return <> {!loaded && <Loading />} </>;
};
export default DelayedFallback;
The purpose is the client wants people who visit the website to watch their video.
Suspense is not respecting this.
Any help would be appreciated!