#Button/Anchor as Next.js Link Component Bug
10 messages · Page 1 of 1 (latest)
Have you checked if the issue is only reproducible with mantine components?
I am using the Mantine Button and Anchor components specifically.
Oh, yo umean without using the next.js Link component?
It works fine with an "a" component:
<Button component='a'...>
But the point is to use Link for next.js prefetching:
<Button component={Link}...>
Disregard, this is expected Next.js behavior. I need to pass in a parameter to Link to prevent it. Instead of passing ={Link}, can I pass ={<Link />} so I can pass it parameters? Or do I need to make a custom component?
You can pass props directly to Button component
And this will apply to the Link component the parameters that are in the button component??