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

fix: Link children types #618

Merged
merged 1 commit into from
Jul 6, 2023
Merged

fix: Link children types #618

merged 1 commit into from
Jul 6, 2023

Conversation

xPapla
Copy link
Contributor

@xPapla xPapla commented Jun 27, 2023

Motivation

Due to usage of type ReactNode = any it is not possible to correctly infer isActive argument type in Links with function as children.

2023-06-27 at 15 40 34

Description

I changed types to use React.ReactNode instead of any, and removed React.AnchorHTMLAttributes<HTMLAnchorElement> that were doubled and resulted in overriding children.

outcome:
2023-06-27 at 15 46 05

@tannerlinsley tannerlinsley merged commit 7a89d98 into TanStack:beta Jul 6, 2023
tannerlinsley added a commit that referenced this pull request Jul 6, 2023
tannerlinsley added a commit that referenced this pull request Jul 6, 2023
tannerlinsley added a commit that referenced this pull request Jul 6, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants