SSR Duplicate elements with provideClientHydration() #14569
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Using the
pButton
directive orp-carousel
with a setautoplayInterval
causes duplicate PrimeNG elements to render. There are most likely more scenarios where this is an issue but I am noting what we have found for others.Update: Occurs when
provideClientHydration()
is enabled, and occurs on a fresh load (does not happen on subsequent client-side navigation)Possibly related: angular/angular#50543
Environment
Occurs on Angular CLI with application builder & Analog when
provideClientHydration()
is enabledReproducer
No response
Angular version
17.0.0 - 17.0.9
PrimeNG version
17.3.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18
Browser(s)
No response
Steps to reproduce the behavior
ng new primeng-test --ssr
<button pButton label="Join Now" icon="pi pi-discord"></button>
(note pButton, not p-button)Expected behavior
Only 1 icon and 1 label to render
The text was updated successfully, but these errors were encountered: