My current setup involves utilizing the inject/provide pattern within the nuxt composition-api. An example of this is Component A injecting a function provided by Component B, which is the parent of Component A, as illustrated below.
//Component B
const test = () => {}
provide('test', test)
//Component A
const test = inject<Function>('test')
However, when I attempt to use Component A without Component B, a warning message is displayed in the console. Although I understand the purpose of the warning, it is unnecessary in this particular scenario since the ''test'' function is not needed. Is there a way to circumvent this warning?
[Vue warn]: Injection "test" not found