Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken route transition on Button with Next.js Link component #307

Closed
batgos opened this issue Mar 29, 2023 · 1 comment
Closed

Broken route transition on Button with Next.js Link component #307

batgos opened this issue Mar 29, 2023 · 1 comment

Comments

@batgos
Copy link

batgos commented Mar 29, 2023

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
Copy link
Contributor

dev0T commented Apr 6, 2023

This seems related to #108

@batgos batgos closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants