Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using link with 'next/link' #25

Open
aj-ya opened this issue Jul 19, 2022 · 1 comment
Open

Using link with 'next/link' #25

aj-ya opened this issue Jul 19, 2022 · 1 comment

Comments

@aj-ya
Copy link
Contributor

aj-ya commented Jul 19, 2022

NextJs provides the 'next/link' component that helps with client-side routing for internal pages which currently cannot be used in conjunction with the 'Jenga-UI/link' component.

possible approach -> https://chakra-ui.com/docs/components/link#usage-with-nextjs

@aj-ya
Copy link
Contributor Author

aj-ya commented Sep 13, 2022

using next/link with @jengaui/button

<Link href={{ pathname: '/[team]', query: { team: 'shalinikaushal' } }}>
<PrimaryButton display={['none', , 'inline-grid']}>Create Database</PrimaryButton>
</Link>

throws error:

next-dev.js?3515:20 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `ForwardRef(LinkComponent)`.
    at PrimaryButton
    at LinkComponent (webpack-internal:///./node_modules/next/dist/client/link.js:88:23)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant