Open
Description
Reloading the page or on form errors, WhenVisible breaks because the state loaded remains to true but the page prop is missing.
Example:
const App = () => {
const { lazyData } = usePage().props;
useEffect(() => {
setTimeout(() => {
router.reload();
}, 5000);
});
return <div>
<WhenVisible data="lazyData" fallback="Loading...">
{lazyLoad.text}
</WhenVisible>
</div>;
}