Say I have a setup that looks like this:
function App() {
return (
<React.Suspense fallback={<SomeOtherComponent />}>
<SomeComponent />
</React.Suspense>
);
}
Is there an easy way during development that I can trigger <SomeComponent />
to suspend for a set period of time so that I can see what the fallback state looks like?
I want this as I am trying to ensure that my fallback state both looks correct and that the transition to the non-fallback state does not look janky. I am hoping that there is a solution that can make the component suspend programmatically on the Javascript side.