Skip to content

bug: stencil initial rendering issueΒ #6317

@danielleroux

Description

@danielleroux

Prerequisites

Stencil Version

4.35.1

Current Behavior

We facing an issue regarding initial rendering inside a lazy rendering 3rd party grid like AGGrid. See Video:

In the column "Price" is a web component without usage of stencil
In the column "Electric" a stencil component.

Screen.Recording.2025-06-25.at.12.50.48.mov

If you use scrollbar to scroll the grid you can see that the grid has problems to render the stencil component but no problems with the none stencil component.

Also on the bottom you find a scenario where I re-render 100 of components. You see there no issues or only a minimal difference between both.

Maybe this is a side effect of the vdom?
Why is ag grid via scrolling by scrollbar so much worse than re-render it 100 times?

Expected Behavior

Initial rendering should be as fast a standard web component.

System Info

MacOS, Chrome

Steps to Reproduce (Layzloading)

Dont see any issue here, its lazy rendering fine

  1. Checkout https://github.com/danielleroux/stencil-render-performance
  2. npm install
  3. npm run start
  4. Scroll AGGrid via scrollbar
  5. Click button to trigger fast re-render

Steps to Reproduce (dist-components)

  1. Checkout https://github.com/danielleroux/stencil-render-performance
  2. npm install
  3. npm start.components
  4. Scroll AGGrid via scrollbar
  5. Click button to trigger fast re-render

Code Reproduction URL

https://github.com/danielleroux/stencil-render-performance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions