diff --git a/src/index.ts b/src/index.ts index ecc81c5..a61a8cf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -156,7 +156,7 @@ export default function defineEmitterComposable>( options: Partial> = {}, ): UseEmitter | undefined> { - const injectKey = options.key ?? (Symbol() as InjectionKey>) + const injectKey = options.key ?? (Symbol('vue-use-emitter') as InjectionKey>) return ((mode: UseEmitterMode = 'inject') => { if (mode === 'provide') { const emitter: AutoOffEmitter = wrapAutoOff(mitt())