Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: port upstream useCookie #988

Merged
merged 8 commits into from
Nov 30, 2023
Merged

feat!: port upstream useCookie #988

merged 8 commits into from
Nov 30, 2023

Conversation

wattanx
Copy link
Collaborator

@wattanx wattanx commented Nov 26, 2023

πŸ”— Linked issue

#987

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Port the useCookie implementation from nuxt 3.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@wattanx wattanx marked this pull request as ready for review November 26, 2023 09:20
@@ -148,7 +150,8 @@ export default defineRenderHandler(async (event) => {
error: ssrError,
redirected: undefined,
nuxt: undefined as undefined | Record<string, any>, /* Nuxt 2 payload */
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In nuxt 2, nuxt could not have hooks.
(It is probably a payload, so it needs to be serializable.)

@danielroe
Copy link
Member

Can we include fix in nuxt/nuxt#24503 ? πŸ™

@wattanx
Copy link
Collaborator Author

wattanx commented Nov 30, 2023

Fixed at b1027a7 !

@danielroe danielroe merged commit 532e9d7 into main Nov 30, 2023
9 checks passed
@danielroe danielroe deleted the feat/upstream-use-cookie branch November 30, 2023 10:20
@github-actions github-actions bot mentioned this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants