You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you load a page for first time web components are rendering properly. once on the server and rehydrates on client.
When you are navigating using SPA to a page which is using web components, this will do multiple rerender.
To Reproduce
Navigate using SPA to a page with web components and add a console.log()
Expected behavior
Only 1 render or at most 1 render. No rerender expected as no user action has been triggered. Also, should rerender using signals, not the whole thing.
As a consequence self.attachInternals() throw an error. Everything works as expected, but it should not rerender that many times, and not the whole component.
Describe the bug
When you load a page for first time web components are rendering properly. once on the server and rehydrates on client.
When you are navigating using SPA to a page which is using web components, this will do multiple rerender.
To Reproduce
Navigate using SPA to a page with web components and add a console.log()
Expected behavior
Only 1 render or at most 1 render. No rerender expected as no user action has been triggered. Also, should rerender using signals, not the whole thing.
Screen recording
https://github.com/user-attachments/assets/81f33881-0e4e-4f6b-aa1c-13c2d1494948
As a consequence self.attachInternals() throw an error. Everything works as expected, but it should not rerender that many times, and not the whole component.
Code I used:
The text was updated successfully, but these errors were encountered: