most simple way, but it will re-render. It may be related to the scrolling restoration bug when the user return the page if your data is fetched on the client
import {useState, useEffect} from 'react'
export default function Index() {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true)