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

Update to only set ref for valid children on Link #8006

Closed
wants to merge 1 commit into from

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jul 16, 2019

Since refs can't be added to function components and we technically allow it, this adds a check before adding the ref to the child.

Fixes: #7915

@ijjk ijjk closed this Jul 16, 2019
@ijjk ijjk deleted the next-link/child-ref branch July 16, 2019 20:59
@vercel vercel locked as resolved and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next 9 - Using functional components as child of <Link/> causes ref-warnings
1 participant