Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit 4472d4e

Browse files
authored
Update packages/nuxt/src/app/composables/cookie.ts
1 parent 8b5cd8a commit 4472d4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/nuxt/src/app/composables/cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function useCookie <T = string> (name: string, _opts?: CookieOptions<T>):
3939
}
4040
}
4141
const unhook = nuxtApp.hooks.hookOnce('app:rendered', writeFinalCookieValue)
42-
nuxtApp.hooks.hookOnce('app:redirected', (...args) => {
42+
nuxtApp.hooks.hookOnce('app:redirected', () => {
4343
// don't write cookie subsequently when app:rendered is called
4444
unhook()
4545
return writeFinalCookieValue()

0 commit comments

Comments
 (0)