Closed blyxyas closed 2 years ago
(Using Next.js)
In the client console it warns the following:
Warning: Function components cannot be given refs. Attemps to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of ForwardRef.
ForwardRef
After some troubleshooting I've came to the conclusion that the Link from next/link is the cause of this error, is there a solution?
Link
next/link
I believe you have to wrap icon component with React.forwardRef function like presented in Next.js documentation. I'm currently away from computer, so unfortunately I can't help you more here.
(Using Next.js)
In the client console it warns the following:
Warning: Function components cannot be given refs. Attemps to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of
ForwardRef
.After some troubleshooting I've came to the conclusion that the
Link
fromnext/link
is the cause of this error, is there a solution?