Another "<Link> causes refresh" issue #14619
-
Hi, i've been searching for an answer here and on SO, but havn't found any that seem to apply to us. We are currently creating a page using react-native-web and NextJS. When using a Link on the page, with a direct anchor child, everything works fine:
However, when using a functional component as a child, the page refreshes for the exact same routes:
Any idea what could be up here? |
Beta Was this translation helpful? Give feedback.
Answered by
cristiand391
Jun 28, 2020
Replies: 1 comment 1 reply
-
If the child of Try with this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
letterix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the child of
Link
is a functional component you have wrap the component inReact.forwardRef
Try with this:
Next.js docs