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

[REF-1993] link: respect is_external prop and other attributes on A tag #2651

Merged
merged 2 commits into from Feb 19, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Feb 17, 2024

Instead of passing all props to NextLink by default, only pass props that NextLink understands, placing the remaining props on the Radix link

Add a test case to avoid regression of is_external behavior.

Fix #2648

Instead of passing all props to NextLink by default, only pass props that
NextLink understands, placing the remaining props on the Radix link

Add a test case to avoid regression of `is_external` behavior.
Because Link is often rendered with NextLink as_child, and NextLink breaks if
the href is stateful outside of a Link, ensure that any stateful child of Link
gets memoized together.
@Alek99 Alek99 self-requested a review February 19, 2024 23:37
Copy link
Contributor

@Alek99 Alek99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working well for me

@Alek99 Alek99 merged commit 279e9bf into main Feb 19, 2024
45 checks passed
@picklelo picklelo deleted the masenf/fix-link-is-external branch February 22, 2024 22:56
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.

[REF-1993] Can't set is_external on rx.link in 0.4.0
2 participants