Using Link component (from @generouted/react-router package) as a dynamic component for other UI library components (e.g. @mui/joy) causes the following errors:
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
This can be fixed locally in a project, but it does not seem convenient if you need to override it in every project.
Would it be possible to wrap Link component using React.forwardRef by default in the package?
Using
Link
component (from@generouted/react-router
package) as a dynamic component for other UI library components (e.g.@mui/joy
) causes the following errors:This can be fixed locally in a project, but it does not seem convenient if you need to override it in every project. Would it be possible to wrap
Link
component usingReact.forwardRef
by default in the package?Example: https://stackblitz.com/edit/github-wjvkrc-ibq3hw?file=src%2Fpages%2F_app.tsx