-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MenuBar: Hydration Errors in v3.51.0 #5541
Comments
rickngo
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Apr 5, 2024
+1 |
relates to #5486 i think i never win this SSR 🥲 |
+1 |
As a solution you can provide an SSR-friendly id with useId() in Nuxt >= 3.10: <script setup>
+ const MenubarId = useId()
</script>
<template>
<Menubar
+ :id="MenubarId"
:model="items"
>
<!-- ... -->
</Menubar>
</template> https://nuxt.com/docs/api/composables/use-id |
Sorry for the confusion. It will be fixed for the next version. |
tugcekucukoglu
removed
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Apr 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After updating to v3.51.0, I am now receiving hydration errors for the MenuBar component. This is occurring on Chrome (Windows and Mac) and Firefox, that I've tested so far.
When I downgrade to v3.50.0, there are no hydration errors
Reproducer
https://stackblitz.com/edit/primevue-nuxt-issue-template-a9mcrv?file=components%2FNavBar.vue,app.vue,package.json,package-lock.json
PrimeVue version
3.51.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
Please see Stackblitz. I created a MenuBar component with routes and rendered it in the App
Expected behavior
No hydration errors
The text was updated successfully, but these errors were encountered: