diff --git a/packages/nc-gui-v2/composables/useInjectionState/index.ts b/packages/nc-gui-v2/composables/useInjectionState/index.ts index b1a01007eb..6cd0f3dbd9 100644 --- a/packages/nc-gui-v2/composables/useInjectionState/index.ts +++ b/packages/nc-gui-v2/composables/useInjectionState/index.ts @@ -2,8 +2,9 @@ import type { InjectionKey } from 'vue' export function useInjectionState( composable: (...args: Arguments) => Return, + keyName = 'InjectionState', ): readonly [useProvidingState: (...args: Arguments) => void, useInjectedState: () => Return | undefined] { - const key: string | InjectionKey = Symbol('InjectionState') + const key: string | InjectionKey = Symbol(keyName) const useProvidingState = (...args: Arguments) => { const providedState = composable(...args)