Skip to content

[BUG-30] use-component triggers 'Unknown hook useComponent' warnings #41

Description

@shroy

Severity: P2 · Batch: B8 (scan-pipeline unification)

Location

src/core/scanDirectives.js:34-45 extracts all use-* attributes; :127 warns unconditionally (logger.warn is always-on)

Failure scenario

On elements that combine use-component="Name" binding with any real hook → prod console spam per scan.

Proposed fix

Skip the reserved use-component attribute in directive extraction.

Verification recipe

Spec: spy on console.warn; element <div use-component="Thing" use-real-hook>; scan; assert no "Unknown hook useComponent" warning. Expected on unmodified code: warning fired → confirmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions