-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 The bug
Example from docs does not work
Because useRegistryScript doesn't get gtm id from useRuntimeConfig
Lines 35 to 37 in 3c88385
export function scriptRuntimeConfig<T extends keyof ScriptRegistry>(key: T) { | |
return ((useRuntimeConfig().public.scripts || {}) as ScriptRegistry)[key] | |
} |
default key "google-tag-manager" but useRuntimeConfig().public.scripts has "googleTagManager"
return useRegistryScript<T, typeof GoogleTagManagerOptions>(_options?.key || 'google-tag-manager', options => ({ |
🛠️ To reproduce
^
🌈 Expected behavior
expected that useScriptGoogleTagManager() gets gtm id from config
ℹ️ Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working