Is there a way to trigger a reload when clicking on a Link component from next/link? I attempted to create my own function within the child div of the link that would reload upon click. However, it seems to reload before the route changes and is not successfully changing routes anymore.
const router = useRoute();
const handleRefresh = () => {
router.reload();
}
<Link href={title.slug}>
<button onClick={handleRefresh} class="button">{title.buttonText}</div>
</Link>