HomeVendure CoreShow hidden breadcrumbs...SettingsStoreSettingsStoreScopeFunctionSettingsStoreScopeFunction@vendure/coreSourcev3.4.0 A function that determines how a settings store entry should be scoped. Returns a string that will be used as the scope key for storage isolation. Example Ts// User-specific scopingconst userScope: SettingsStoreScopeFunction = ({ ctx }) => ctx.activeUserId || '';// Channel-specific scopingconst channelScope: SettingsStoreScopeFunction = ({ ctx }) => ctx.channelId || '';// User and channel scopingconst userAndChannelScope: SettingsStoreScopeFunction = ({ ctx }) => `${ctx.activeUserId || ''}:${ctx.channelId || ''}`; Signaturetype SettingsStoreScopeFunction = (params: { key: string; value?: any; ctx: RequestContext;}) => stringWas this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousSettingsStoreRegistrationNextSettingsStoreScopesEdited Jan 28, 2026ยทEdit this page