shuding/next-view-transitions

Not working with Link "legacyBehavior" prop

Open

#15 opened on May 28, 2024

View on GitHub
 (0 comments) (2 reactions) (0 assignees)TypeScript (92 forks)user submission
enhancementgood first issue

Repository metrics

Stars
 (2,388 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

import { Link } from 'next-view-transitions'

<Link href={`/next`} passHref legacyBehavior>
  <CustomButton>
      Go to next page
  </CustomButton>
</Link>

The transition is not working when legacyBehavior prop is needed.

Contributor guide