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(hr): Fix ENC1002 when dealing with event handlers #19418

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dr1rrb
Copy link
Member

@dr1rrb dr1rrb commented Jan 31, 2025

closes https://github.com/unoplatform/uno.hotdesign/issues/3289
closes https://github.com/unoplatform/uno.hotdesign/issues/3299

Potentially also fixes:
https://github.com/unoplatform/uno.hotdesign/issues/3290
https://github.com/unoplatform/uno.hotdesign/issues/3281

Bugfix

Fix ENC1002 when dealing with event handlers

What is the current behavior?

Get ENC1002 pretty easily when dealing with element that has event handlers (code behind or x:Bind)

What is the new behavior?

HR

PR Checklist

@github-actions github-actions bot added the area/code-generation Categorizes an issue or PR as relevant to code generation label Jan 31, 2025
@dr1rrb dr1rrb enabled auto-merge January 31, 2025 23:36
@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19418/index.html

Copy link
Member

@carldebilly carldebilly left a comment

Choose a reason for hiding this comment

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

LGTM

owner.__1_Click_P2_Button_Click_Builder = null;
owner.__2_Click_P3_Button_Click_Builder?.Invoke( owner._component_2);
owner.__2_Click_P3_Button_Click_Builder = null;
owner.__ApplyMethod_0_Click_Initialize();
Copy link
Member

Choose a reason for hiding this comment

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

We should not call those multiple times per component.

@@ -39,6 +46,8 @@ public NameScope(string? @namespace, string className)

public Dictionary<string, Subclass> Subclasses { get; } = [];

public List<Action<IIndentedStringBuilder>> Subclasses2 { get; } = [];
Copy link
Member

Choose a reason for hiding this comment

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

SubclasseBuilders ?

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19418/index.html

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19418/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-generation Categorizes an issue or PR as relevant to code generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants