vue icon indicating copy to clipboard operation
vue copied to clipboard

chore(warn): include key name in inject() usage warning

Open Tia-ani opened this issue 1 month ago • 0 comments

  • This PR improves the developer warning message in inject() when used outside setup() or functional components.

Before:

inject() can only be used inside setup() or functional components.

After:

inject("userStore") can only be used inside setup() or functional components.

  • This makes it easier for developers to identify which injection key caused the warning.

  • solves issue #13287

Tia-ani avatar Nov 09 '25 13:11 Tia-ani