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

fixes cx not found on components marked with #[component(transparent)] #423

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

jquesada2016
Copy link
Contributor

Currently, if you use #[component(transparent)] on a component, and the cx has any other name besides cx, we get an error. This fixes this.

@gbj
Copy link
Collaborator

gbj commented Feb 1, 2023

error[E0425]: cannot find value `cx` in this scope
   --> leptos_macro/src/component.rs:170:29
    |
170 |                 #body_name(#cx, #prop_names)
    |                             ^^ not found in this scope
    ```

@jquesada2016
Copy link
Contributor Author

error[E0425]: cannot find value `cx` in this scope
   --> leptos_macro/src/component.rs:170:29
    |
170 |                 #body_name(#cx, #prop_names)
    |                             ^^ not found in this scope
    ```

Hmmm...well this is true, but the odd thing is that when I ran it, I got no compile error. I'll fix it tomorrow, thanks!

@jquesada2016
Copy link
Contributor Author

@gbj, okay, now we should be good to go....

@gbj gbj merged commit 1f6a326 into leptos-rs:main Feb 1, 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