daisyui/react-daisyui

Broken route transition on Button with Next.js Link component

batgos opened this issue · 1 comments

When I use a Button as a child of a Next/Link component with Href, the Next.js client-side route transition is not working and a reload is applied to my app when accessing the page

Example :

import Link from 'next/link';
import { Button } from 'react-daisyui';

<Link href="/admin/staff-invitations" legacyBehavior passHref>
     <Button color="primary">{t('invitation-list')}</Button>
</Link>
dev0T commented

This seems related to #108