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

feat: #[component] now handles impl Trait by converting to generic type params, fix #2274 #2599

Merged
merged 1 commit into from
May 29, 2024

Conversation

MingweiSamuel
Copy link
Contributor

@MingweiSamuel MingweiSamuel commented May 21, 2024

Fix #2274 (for real)

Currently the Idents generated are just in the form __ImplTrait0, __ImplTrait1, etc. Maybe could base it off of the argument names, to improve error messages if there are bugs.

Book needs to be updated to remove this line:
https://github.com/leptos-rs/book/blob/35c380ffc8f7d2e50ef21db97943138b3dba2728/src/view/03_components.md?plain=1#L233

leptos_macro/src/component.rs Outdated Show resolved Hide resolved
leptos_macro/src/lib.rs Outdated Show resolved Hide resolved
@MingweiSamuel MingweiSamuel force-pushed the fix-2274 branch 2 times, most recently from 4aa44bb to 52fd080 Compare May 21, 2024 18:23
@MingweiSamuel MingweiSamuel marked this pull request as ready for review May 21, 2024 18:24
@MingweiSamuel MingweiSamuel force-pushed the fix-2274 branch 3 times, most recently from d297e4f to 1389b9f Compare May 21, 2024 19:20
@gbj
Copy link
Collaborator

gbj commented May 29, 2024

Looks great -- Thanks very much!

@gbj gbj merged commit 2f4fd87 into leptos-rs:main May 29, 2024
57 of 59 checks passed
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.

Support for impl Trait inside #[component] params
2 participants