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

Hydration Password #1918

Closed
kmuip opened this issue Dec 21, 2021 · 2 comments
Closed

Hydration Password #1918

kmuip opened this issue Dec 21, 2021 · 2 comments

Comments

@kmuip
Copy link

kmuip commented Dec 21, 2021

Hello there :)

Today I had the following issue with Primevue:

I'm submitting a ...

[x] bug report => Search github for a similar issue or PR before submitting

Current behavior
The dev tool console reports a hydration warning on page load if a Password component is present.

Expected behavior
No hydration warning.

Minimal reproduction of the problem with instructions
Here is a minimal reproduction of the issue:
https://github.com/kmuip/primevue-bug-reprod

I installed nuxt3 as per https://v3.nuxtjs.org installation guide and added primevue according to the quick start example. (https://github.com/primefaces/primevue-quickstart-nuxt3)

What is the motivation / use case for changing the behavior?

For me, router.push('/route') does not work while such a hydration warning exists.

Please tell us about your environment:
Windows 10 with Ubuntu WSL, vscode, node 16 LTS, yarn

  • Vue version:
    Latest nuxt3 package

  • PrimeVue version: 3.10.0
    I did not test it with previous versions.

  • Browser: Chrome 94, latest build

@kmuip
Copy link
Author

kmuip commented Dec 28, 2021

I found the issue with the Password component.

It is the "Teleport" component provided by Vue3 which is causing the problem in Nuxt3 ssr mode.
It only affects the password strength panel.

nuxt/nuxt#12766

I'm not sure yet if this is a problem that is going to be fixed or if Teleport should not be used in ssr mode.

Workaround
Wrap the Password component in <ClientOnly> for now.

@tugcekucukoglu tugcekucukoglu changed the title Hydration error with Password component in nuxt3 Hydration Password Jan 14, 2022
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 26, 2022
@cagataycivici cagataycivici added this to the 3.13.0 milestone May 31, 2022
@mertsincan
Copy link
Member

Fixed in #2602

@mertsincan mertsincan removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 1, 2022
@mertsincan mertsincan removed this from the 3.13.0 milestone Jun 1, 2022
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

No branches or pull requests

3 participants