Skip to content

feat: NativeLabel.setFor() lazily resolves and auto-generates IDs#24425

Open
Artur- wants to merge 1 commit into
mainfrom
claude/slack-session-7fVlC
Open

feat: NativeLabel.setFor() lazily resolves and auto-generates IDs#24425
Artur- wants to merge 1 commit into
mainfrom
claude/slack-session-7fVlC

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented May 22, 2026

The setFor(Component) method now uses beforeClientResponse to lazily resolve the component's ID at sync time rather than requiring it immediately. If the component still doesn't have an ID by then, one is automatically generated.

This makes NativeLabel easier to use because developers no longer need to manually assign IDs to components when using setFor().

Fixes #24424

https://claude.ai/code/session_014v3s2ioBp5pSwd4F3Euqt5

The setFor(Component) method now uses beforeClientResponse to lazily
resolve the component's ID at sync time rather than requiring it
immediately. If the component still doesn't have an ID by then, one is
automatically generated.

This makes NativeLabel easier to use because developers no longer need
to manually assign IDs to components when using setFor().

Fixes #24424

https://claude.ai/code/session_014v3s2ioBp5pSwd4F3Euqt5
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test Results

 1 420 files  ±0   1 420 suites  ±0   1h 22m 34s ⏱️ - 2m 6s
10 007 tests +2   9 938 ✅ +2  69 💤 ±0  0 ❌ ±0 
10 482 runs  +2  10 411 ✅ +2  71 💤 ±0  0 ❌ ±0 

Results for commit 8947b36. ± Comparison against base commit 3e30222.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make NativeLabel bettter for developer

2 participants