Skip to content

Go to implementation for injected dependencies doesn't lead to implementation #255

@guyca

Description

@guyca

When cmd clicking on an injected dependency in a hook or a functional component - the IDE leads to the provider instead of to the implementation.

Reproduction

const foo = ({useBar}: Injected) => { // ✅ cmd clicking on useBar leads to the implementation as expected
  const bar = useBar(); // ❌ cmd clicking on useBar leads to the provider
  return <>bar<>;
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions