Commit 45c875e
authored
fix(v3): include key in inject() warning message
Improves the warning message in the inject() function to include the key being injected.
This addresses issue #13287 where users were unable to identify which inject() call was failing without the key information in the warning message.
Changes made:
- Modified src/v3/apiInject.ts line 69 to include the injected key in the warning message
- The warning now displays: inject(<key>) can only be used inside setup() or functional components.
- This matches the pattern used in the error message on line 661 parent 9e88707 commit 45c875e
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
71 | 70 | | |
0 commit comments